35 references to Kind
System.Runtime.Serialization (35)
System\Runtime\Serialization\CollectionDataContract.cs (5)
456
if (this.UnderlyingType.IsInterface && (this.
Kind
== CollectionKind.Enumerable || this.
Kind
== CollectionKind.Collection || this.
Kind
== CollectionKind.GenericEnumerable))
464
Fx.Assert(this.AddMethod != null || this.
Kind
== CollectionKind.Array, "Add method cannot be null if the collection is being used as a get-only property");
1240
CollectionDataContract boundCollectionContract = new CollectionDataContract(
Kind
);
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
67
CollectionKind kind = this.TraditionalCollectionDataContract.
Kind
;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (11)
645
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
649
switch (collectionContract.
Kind
)
687
bool canReadSimpleDictionary = collectionContract.
Kind
== CollectionKind.Dictionary ||
688
collectionContract.
Kind
== CollectionKind.GenericDictionary;
861
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
870
bool canReadSimpleDictionary = collectionContract.
Kind
== CollectionKind.Dictionary ||
871
collectionContract.
Kind
== CollectionKind.GenericDictionary;
994
if (collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary)
1016
if (collectionContract.
Kind
== CollectionKind.GenericDictionary || collectionContract.
Kind
== CollectionKind.Dictionary)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
357
if (collectionContract.
Kind
== CollectionKind.Array)
383
switch (collectionContract.
Kind
)
406
if (collectionContract.
Kind
== CollectionKind.GenericDictionary)
412
else if (collectionContract.
Kind
== CollectionKind.Dictionary)
436
CollectionKind kind = collectionContract.
Kind
;
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
310
if (((CollectionDataContract)dataContract).
Kind
== CollectionKind.Dictionary)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (7)
600
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
606
switch (collectionContract.
Kind
)
739
bool isArray = (collectionContract.
Kind
== CollectionKind.Array);
846
if (collectionContract.
Kind
== CollectionKind.Dictionary || collectionContract.
Kind
== CollectionKind.GenericDictionary)
867
if (collectionContract.
Kind
== CollectionKind.GenericDictionary || collectionContract.
Kind
== CollectionKind.Dictionary)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
394
if (collectionContract.
Kind
== CollectionKind.Array)
419
switch (collectionContract.
Kind
)
442
if (collectionContract.
Kind
== CollectionKind.GenericDictionary)
448
else if (collectionContract.
Kind
== CollectionKind.Dictionary)
472
CollectionKind kind = collectionContract.
Kind
;