63 references to CollectionKind
dotnet-svcutil-lib (63)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (35)
152
public CollectionDataContract(
CollectionKind
kind) : base(new CollectionDataContractCriticalHelper(kind))
172
private CollectionDataContract(Type type,
CollectionKind
kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor)
183
private CollectionDataContract(Type type,
CollectionKind
kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor, bool isConstructorCheckRequired)
207
if (_helper.Kind ==
CollectionKind
.Dictionary || _helper.Kind ==
CollectionKind
.GenericDictionary)
225
internal
CollectionKind
Kind
546
if (UnderlyingType.GetTypeInfo().IsInterface && (Kind ==
CollectionKind
.Enumerable || Kind ==
CollectionKind
.Collection || Kind ==
CollectionKind
.GenericEnumerable))
550
Debug.Assert(AddMethod != null || Kind ==
CollectionKind
.Array, "Add method cannot be null if the collection is being used as a get-only property");
575
private
CollectionKind
_kind;
617
private void Init(
CollectionKind
kind, Type itemType, CollectionDataContractAttribute collectionContractAttribute)
624
bool isDictionary = (kind ==
CollectionKind
.Dictionary || kind ==
CollectionKind
.GenericDictionary);
670
internal CollectionDataContractCriticalHelper(
CollectionKind
kind)
684
Init(
CollectionKind
.Array, type.GetElementType(), null);
688
internal CollectionDataContractCriticalHelper(Type type,
CollectionKind
kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor) : base(type)
707
internal CollectionDataContractCriticalHelper(Type type,
CollectionKind
kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor, bool isConstructorCheckRequired)
715
Init(
CollectionKind
.Collection, null /*itemType*/, null);
719
internal
CollectionKind
Kind
1078
dataContract = new CollectionDataContract(type, (
CollectionKind
)(i + 1), itemType, getEnumeratorMethod, addMethod, null/*defaultCtor*/);
1095
CollectionKind
kind =
CollectionKind
.None;
1106
CollectionKind
currentKind = (
CollectionKind
)(i + 1);
1107
if (kind ==
CollectionKind
.None || currentKind < kind)
1120
if (kind ==
CollectionKind
.None)
1126
if (kind ==
CollectionKind
.Enumerable || kind ==
CollectionKind
.Collection || kind ==
CollectionKind
.GenericEnumerable)
1152
case
CollectionKind
.GenericDictionary:
1158
case
CollectionKind
.Dictionary:
1162
case
CollectionKind
.GenericList:
1163
case
CollectionKind
.GenericCollection:
1167
case
CollectionKind
.List:
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
1062
CollectionDataContract dataContract = new CollectionDataContract(
CollectionKind
.Array);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (14)
502
bool isArray = (collectionContract.Kind ==
CollectionKind
.Array);
510
case
CollectionKind
.GenericDictionary:
514
case
CollectionKind
.Dictionary:
518
case
CollectionKind
.Collection:
519
case
CollectionKind
.GenericCollection:
520
case
CollectionKind
.Enumerable:
521
case
CollectionKind
.GenericEnumerable:
522
case
CollectionKind
.List:
523
case
CollectionKind
.GenericList:
641
bool isArray = (collectionContract.Kind ==
CollectionKind
.Array);
748
if (collectionContract.Kind ==
CollectionKind
.Dictionary || collectionContract.Kind ==
CollectionKind
.GenericDictionary)
769
if (collectionContract.Kind ==
CollectionKind
.GenericDictionary || collectionContract.Kind ==
CollectionKind
.Dictionary)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (13)
314
if (collectionContract.Kind ==
CollectionKind
.Array)
341
case
CollectionKind
.Collection:
342
case
CollectionKind
.List:
343
case
CollectionKind
.Dictionary:
346
case
CollectionKind
.GenericCollection:
347
case
CollectionKind
.GenericList:
350
case
CollectionKind
.GenericDictionary:
362
if (collectionContract.Kind ==
CollectionKind
.GenericDictionary)
368
else if (collectionContract.Kind ==
CollectionKind
.Dictionary)
392
CollectionKind
kind = collectionContract.Kind;
393
if (kind ==
CollectionKind
.GenericDictionary || kind ==
CollectionKind
.GenericCollection || kind ==
CollectionKind
.GenericEnumerable)