13 instantiations of CollectionDataContract
System.Runtime.Serialization (13)
System\Runtime\Serialization\CollectionDataContract.cs (8)
880
dataContract = new
CollectionDataContract
(type);
989
dataContract = new
CollectionDataContract
(type, (CollectionKind)(i + 1), itemType, getEnumeratorMethod, addMethod, null/*defaultCtor*/);
1076
new
CollectionDataContract
(type, kind, itemType, getEnumeratorMethod, serializationExceptionMessage, deserializationExceptionMessage) :
1077
new
CollectionDataContract
(type, kind, itemType, getEnumeratorMethod, addMethod, defaultCtor, !constructorRequired);
1117
new
CollectionDataContract
(type, kind, itemType, getEnumeratorMethod, serializationExceptionMessage, deserializationExceptionMessage) :
1118
new
CollectionDataContract
(type, kind, itemType, getEnumeratorMethod, addMethod, defaultCtor, !constructorRequired);
1142
dataContract = new
CollectionDataContract
(type, GetInvalidCollectionMessage(message, SR.GetString(SR.InvalidCollectionType, DataContract.GetClrTypeFullName(type)), param));
1240
CollectionDataContract boundCollectionContract = new
CollectionDataContract
(Kind);
System\Runtime\Serialization\DataContract.cs (3)
580
dataContract = new
CollectionDataContract
(type);
870
dataContract = new
CollectionDataContract
(type);
981
dataContract = new
CollectionDataContract
(typeof(Array));
System\Runtime\Serialization\NetDataContractSerializer.cs (1)
505
surrogateContract = new
CollectionDataContract
(type, itemContract);
System\Runtime\Serialization\SchemaImporter.cs (1)
1068
CollectionDataContract dataContract = new
CollectionDataContract
(CollectionKind.Array);
116 references to CollectionDataContract
System.Runtime.Serialization (116)
System\Runtime\Serialization\ClassDataContract.cs (4)
382
if (
CollectionDataContract
.IsCollectionInterface(interfaceType))
717
if (baseContract is
CollectionDataContract
)
718
this.BaseContract = ((
CollectionDataContract
)baseContract).SharedTypeContract as ClassDataContract;
1010
if (
CollectionDataContract
.IsCollection(memberContract.MemberType, false /*isConstructorRequired*/, skipIfReadOnlyContract) && !memberContract.MemberType.IsValueType)
System\Runtime\Serialization\CodeExporter.cs (14)
59
if (!(dataContract.IsBuiltInDataContract || dataContract is
CollectionDataContract
))
239
if (
CollectionDataContract
.IsCollection(type))
248
else if (dataContract is
CollectionDataContract
)
284
else if (dataContract is
CollectionDataContract
)
285
ExportCollectionDataContract((
CollectionDataContract
)dataContract, contractCodeDomInfo);
382
CollectionDataContract
GenericListContract
384
get { return dataContractSet.GetDataContract(Globals.TypeOfListGeneric) as
CollectionDataContract
; }
392
CollectionDataContract
GenericDictionaryContract
394
get { return dataContractSet.GetDataContract(Globals.TypeOfDictionaryGeneric) as
CollectionDataContract
; }
593
return GetReferencedCollectionType(dataContract as
CollectionDataContract
);
596
CodeTypeReference GetReferencedCollectionType(
CollectionDataContract
collectionContract)
620
bool HasDefaultCollectionNames(
CollectionDataContract
collectionContract)
634
bool TryGetReferencedDictionaryType(
CollectionDataContract
collectionContract, out CodeTypeReference typeReference)
1187
void ExportCollectionDataContract(
CollectionDataContract
collectionContract, ContractCodeDomInfo contractCodeDomInfo)
System\Runtime\Serialization\CollectionDataContract.cs (3)
1240
CollectionDataContract
boundCollectionContract = new CollectionDataContract(Kind);
1402
CollectionDataContract
dataContract = other as
CollectionDataContract
;
System\Runtime\Serialization\DataContract.cs (5)
594
if (!
CollectionDataContract
.TryCreate(type, out dataContract))
637
if (!
CollectionDataContract
.TryCreateGetOnlyCollectionDataContract(type, out dataContract))
682
if (type.IsInterface && !
CollectionDataContract
.IsCollectionInterface(type))
1291
if (
CollectionDataContract
.IsCollection(type, out itemType))
1484
if (
CollectionDataContract
.IsCollection(type, out itemType))
System\Runtime\Serialization\DataContractSerializer.cs (1)
415
if (declaredType.IsInterface &&
CollectionDataContract
.IsCollectionInterface(declaredType))
System\Runtime\Serialization\DataContractSet.cs (5)
150
else if (dataContract is
CollectionDataContract
)
152
AddCollectionDataContract((
CollectionDataContract
)dataContract);
191
void AddCollectionDataContract(
CollectionDataContract
collectionDataContract)
283
internal DataContract GetItemTypeDataContract(
CollectionDataContract
collectionContract)
507
CollectionDataContract
.IsCollection(type, out itemType) ||
System\Runtime\Serialization\Globals.cs (2)
1012
typeOfDictionaryEnumerator = typeof(
CollectionDataContract
.DictionaryEnumerator);
1025
typeOfGenericDictionaryEnumerator = typeof(
CollectionDataContract
.GenericDictionaryEnumerator<,>);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
517
while (
CollectionDataContract
.IsCollection(typeToCheck, out itemType))
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (5)
21
public JsonCollectionDataContract(
CollectionDataContract
traditionalDataContract)
109
CollectionDataContract
TraditionalCollectionDataContract
152
CollectionDataContract
traditionalCollectionDataContract;
154
public JsonCollectionDataContractCriticalHelper(
CollectionDataContract
traditionalDataContract)
178
internal
CollectionDataContract
TraditionalCollectionDataContract
System\Runtime\Serialization\Json\JsonDataContract.cs (6)
280
else if (traditionalDataContractType == typeof(
CollectionDataContract
))
282
dataContract = new JsonCollectionDataContract((
CollectionDataContract
)traditionalDataContract);
306
CollectionDataContract
collectionDataContract = knownDataContract.Value as
CollectionDataContract
;
330
if (!(itemContract is
CollectionDataContract
))
334
collectionDataContract = itemContract as
CollectionDataContract
;
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (1)
197
getItemContractMethod = typeof(
CollectionDataContract
).GetProperty("ItemContract", Globals.ScanAllMembers).GetGetMethod(true); // nonPublic
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (13)
17
delegate object JsonFormatCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName,
CollectionDataContract
collectionContract);
18
delegate void JsonFormatGetOnlyCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName,
CollectionDataContract
collectionContract);
59
public JsonFormatCollectionReaderDelegate GenerateCollectionReader(
CollectionDataContract
collectionContract)
83
public JsonFormatGetOnlyCollectionReaderDelegate GenerateGetOnlyCollectionReader(
CollectionDataContract
collectionContract)
172
public JsonFormatCollectionReaderDelegate GenerateCollectionReader(
CollectionDataContract
collectionContract)
181
public JsonFormatGetOnlyCollectionReaderDelegate GenerateGetOnlyCollectionReader(
CollectionDataContract
collectionContract)
188
CodeGenerator GenerateCollectionReaderHelper(
CollectionDataContract
collectionContract, bool isGetOnlyCollection)
641
void ReadCollection(
CollectionDataContract
collectionContract)
765
void ReadSimpleDictionary(
CollectionDataContract
collectionContract, Type keyValueType)
857
void ReadGetOnlyCollection(
CollectionDataContract
collectionContract)
992
LocalBuilder ReadCollectionItem(
CollectionDataContract
collectionContract, Type itemType)
1014
void StoreCollectionValue(LocalBuilder collection, LocalBuilder value,
CollectionDataContract
collectionContract)
1044
void StoreKeyValuePair(LocalBuilder collection,
CollectionDataContract
collectionContract, LocalBuilder pairKey, LocalBuilder pairValue)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (7)
14
delegate void JsonFormatCollectionWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
CollectionDataContract
dataContract);
53
internal JsonFormatCollectionWriterDelegate GenerateCollectionWriter(
CollectionDataContract
collectionContract)
120
internal JsonFormatCollectionWriterDelegate GenerateCollectionWriter(
CollectionDataContract
collectionContract)
213
void ThrowIfCannotSerializeReadOnlyTypes(
CollectionDataContract
classContract)
350
void WriteCollection(
CollectionDataContract
collectionContract)
452
moveNextMethod =
CollectionDataContract
.GetTargetMethodWithName(Globals.MoveNextMethodName, enumeratorType, ienumeratorInterface);
454
getCurrentMethod =
CollectionDataContract
.GetTargetMethodWithName(Globals.GetCurrentMethodName, enumeratorType, ienumeratorInterface);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (9)
262
if (isDeclaredTypeInterface &&
CollectionDataContract
.IsCollectionInterface(declaredType))
295
if ((contractType == typeof(
CollectionDataContract
)) && !
CollectionDataContract
.IsCollectionInterface(declaredType))
303
if ((declaredType != dataContract.UnderlyingType) && (dataContract is
CollectionDataContract
))
310
if (((
CollectionDataContract
)dataContract).Kind == CollectionKind.Dictionary)
331
if (!(isDeclaredTypeInterface &&
CollectionDataContract
.IsCollectionInterface(declaredType))
391
CollectionDataContract
collectionContract = rootTypeDataContract as
CollectionDataContract
;
408
collectionContract = itemContract as
CollectionDataContract
;
System\Runtime\Serialization\KnownTypeDataContractResolver.cs (1)
31
if (declaredType != null && declaredType.IsInterface &&
CollectionDataContract
.IsCollectionInterface(declaredType))
System\Runtime\Serialization\SchemaExporter.cs (6)
103
else if (dataContract is
CollectionDataContract
)
104
ExportCollectionDataContract((
CollectionDataContract
)dataContract, schema);
260
while (
CollectionDataContract
.IsCollection(clrType, out itemType))
263
||
CollectionDataContract
.IsCollectionDataContract(clrType))
360
void ExportCollectionDataContract(
CollectionDataContract
collectionDataContract, XmlSchema schema)
366
if (collectionDataContract.UnderlyingType.IsGenericType &&
CollectionDataContract
.IsCollectionDataContract(collectionDataContract.UnderlyingType))
System\Runtime\Serialization\SchemaImporter.cs (5)
190
while (dataContract is
CollectionDataContract
)
194
dataContract = ((
CollectionDataContract
)dataContract).ItemContract;
201
dataContract = ((
CollectionDataContract
)dataContract).ItemContract;
1066
CollectionDataContract
ImportCollection(XmlQualifiedName typeName, XmlSchemaSequence rootSequence, XmlSchemaObjectCollection attributes, XmlSchemaAnnotation annotation, bool isReference)
1068
CollectionDataContract
dataContract = new CollectionDataContract(CollectionKind.Array);
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (4)
142
getItemContractMethod = typeof(
CollectionDataContract
).GetProperty("ItemContract", Globals.ScanAllMembers).GetGetMethod(true/*nonPublic*/);
955
collectionItemNameProperty = typeof(
CollectionDataContract
).GetProperty("CollectionItemName", Globals.ScanAllMembers);
968
childElementNamespaceProperty = typeof(
CollectionDataContract
).GetProperty("ChildElementNamespace", Globals.ScanAllMembers);
1059
collectionSerializationExceptionMessageProperty = typeof(
CollectionDataContract
).GetProperty("SerializationExceptionMessage", Globals.ScanAllMembers);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (11)
23
internal delegate object XmlFormatCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace,
CollectionDataContract
collectionContract);
24
internal delegate void XmlFormatGetOnlyCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace,
CollectionDataContract
collectionContract);
64
public XmlFormatCollectionReaderDelegate GenerateCollectionReader(
CollectionDataContract
collectionContract)
86
public XmlFormatGetOnlyCollectionReaderDelegate GenerateGetOnlyCollectionReader(
CollectionDataContract
collectionContract)
183
public XmlFormatCollectionReaderDelegate GenerateCollectionReader(
CollectionDataContract
collectionContract)
192
public XmlFormatGetOnlyCollectionReaderDelegate GenerateGetOnlyCollectionReader(
CollectionDataContract
collectionContract)
199
CodeGenerator GenerateCollectionReaderHelper(
CollectionDataContract
collectionContract, bool isGetOnlyCollection)
596
void ReadCollection(
CollectionDataContract
collectionContract)
735
void ReadGetOnlyCollection(
CollectionDataContract
collectionContract)
844
LocalBuilder ReadCollectionItem(
CollectionDataContract
collectionContract, Type itemType, string itemName, string itemNs)
865
void StoreCollectionValue(LocalBuilder collection, LocalBuilder value,
CollectionDataContract
collectionContract)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (7)
23
internal delegate void XmlFormatCollectionWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
CollectionDataContract
dataContract);
63
internal XmlFormatCollectionWriterDelegate GenerateCollectionWriter(
CollectionDataContract
collectionContract)
132
internal XmlFormatCollectionWriterDelegate GenerateCollectionWriter(
CollectionDataContract
collectionContract)
208
void ThrowIfCannotSerializeReadOnlyTypes(
CollectionDataContract
classContract)
374
void WriteCollection(
CollectionDataContract
collectionContract)
488
moveNextMethod =
CollectionDataContract
.GetTargetMethodWithName(Globals.MoveNextMethodName, enumeratorType, ienumeratorInterface);
490
getCurrentMethod =
CollectionDataContract
.GetTargetMethodWithName(Globals.GetCurrentMethodName, enumeratorType, ienumeratorInterface);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
354
CollectionDataContract
collectionContract = rootTypeDataContract as
CollectionDataContract
;
362
collectionContract = itemContract as
CollectionDataContract
;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
706
else if (dataContract is
CollectionDataContract
)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
167
if (declaredType.IsInterface &&
CollectionDataContract
.IsCollectionInterface(declaredType))
185
if (declaredType.IsInterface &&
CollectionDataContract
.IsCollectionInterface(declaredType))