58 references to Kind
System.Private.DataContractSerialization (58)
System\Runtime\Serialization\CollectionDataContract.cs (4)
353
if (UnderlyingType.IsInterface && (
Kind
== CollectionKind.Enumerable ||
Kind
== CollectionKind.Collection ||
Kind
== CollectionKind.GenericEnumerable))
363
if (
Kind
!= CollectionKind.Array && AddMethod == null)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
69
CollectionKind kind = this.TraditionalCollectionDataContract.
Kind
;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (11)
603
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
607
switch (collectionContract.
Kind
)
645
bool canReadSimpleDictionary = collectionContract.
Kind
== CollectionKind.Dictionary ||
646
collectionContract.
Kind
== CollectionKind.GenericDictionary;
824
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
833
bool canReadSimpleDictionary = collectionContract.
Kind
== CollectionKind.Dictionary ||
834
collectionContract.
Kind
== CollectionKind.GenericDictionary;
964
if (collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary)
988
if (collectionContract.
Kind
== CollectionKind.GenericDictionary || collectionContract.
Kind
== CollectionKind.Dictionary)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
314
if (collectionContract.
Kind
== CollectionKind.Array)
342
switch (collectionContract.
Kind
)
365
if (collectionContract.
Kind
== CollectionKind.GenericDictionary)
371
else if (collectionContract.
Kind
== CollectionKind.Dictionary)
393
CollectionKind kind = collectionContract.
Kind
;
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (4)
121
Debug.Assert(collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary);
135
bool canReadSimpleDictionary = collectionContract.
Kind
== CollectionKind.Dictionary
136
|| collectionContract.
Kind
== CollectionKind.GenericDictionary;
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (5)
40
if (collectionContract.
Kind
== CollectionKind.Array)
64
bool canWriteSimpleDictionary = collectionContract.
Kind
== CollectionKind.GenericDictionary
65
|| collectionContract.
Kind
== CollectionKind.Dictionary;
102
bool isDictionary = collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary;
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
215
if (((CollectionDataContract)dataContract).
Kind
== CollectionKind.Dictionary)
System\Runtime\Serialization\ReflectionReader.cs (10)
101
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
128
if (collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary)
457
switch (collectionContract.
Kind
)
473
return collectionContract.
Kind
== CollectionKind.Array || IsArrayLikeInterface(collectionContract);
487
else if (collectionContract.
Kind
== CollectionKind.GenericDictionary && collectionContract.UnderlyingType.IsInterface)
528
if (isReadOnlyCollection && collectionContract.
Kind
== CollectionKind.Array)
551
else if (collectionContract.
Kind
== CollectionKind.GenericDictionary || collectionContract.
Kind
== CollectionKind.Dictionary)
558
if (collectionContract.
Kind
== CollectionKind.GenericDictionary)
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (2)
126
Debug.Assert(collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary);
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (3)
38
if (collectionDataContract.
Kind
== CollectionKind.Array)
73
bool isDictionary = collectionDataContract.
Kind
== CollectionKind.Dictionary || collectionDataContract.
Kind
== CollectionKind.GenericDictionary;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (7)
637
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
643
switch (collectionContract.
Kind
)
779
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
892
if (collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary)
917
if (collectionContract.
Kind
== CollectionKind.GenericDictionary || collectionContract.
Kind
== CollectionKind.Dictionary)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
394
if (collectionContract.
Kind
== CollectionKind.Array)
421
switch (collectionContract.
Kind
)
444
if (collectionContract.
Kind
== CollectionKind.GenericDictionary)
450
else if (collectionContract.
Kind
== CollectionKind.Dictionary)
472
CollectionKind kind = collectionContract.
Kind
;