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