6 instantiations of ClassDataContract
System.Runtime.Serialization (6)
System\Runtime\Serialization\ClassDataContract.cs (2)
320
return new
ClassDataContract
(type, ns, memberNames);
1408
ClassDataContract boundClassContract = new
ClassDataContract
();
System\Runtime\Serialization\CollectionDataContract.cs (1)
829
return new
ClassDataContract
(type);
System\Runtime\Serialization\DataContract.cs (1)
598
dataContract = new
ClassDataContract
(type);
System\Runtime\Serialization\SchemaImporter.cs (2)
664
ClassDataContract dataContract = new
ClassDataContract
();
844
ClassDataContract dataContract = new
ClassDataContract
();
145 references to ClassDataContract
System.Runtime.Serialization (145)
System\Runtime\Serialization\ClassDataContract.cs (11)
89
internal
ClassDataContract
BaseContract
318
internal static
ClassDataContract
CreateClassDataContractForKeyValue(Type type, XmlDictionaryString ns, string[] memberNames)
657
ClassDataContract
baseContract;
718
this.BaseContract = ((CollectionDataContract)baseContract).SharedTypeContract as
ClassDataContract
;
720
this.BaseContract = baseContract as
ClassDataContract
;
1029
ClassDataContract
currContract = BaseContract;
1178
internal
ClassDataContract
BaseContract
1408
ClassDataContract
boundClassContract = new ClassDataContract();
1434
boundClassContract.BaseContract = (
ClassDataContract
)BaseContract.BindGenericParameters(paramContracts, boundContracts);
1455
ClassDataContract
dataContract = other as
ClassDataContract
;
System\Runtime\Serialization\CodeExporter.cs (19)
276
if (dataContract is
ClassDataContract
)
278
ClassDataContract
classDataContract = (
ClassDataContract
)dataContract;
309
void ExportClassDataContractHierarchy(XmlQualifiedName typeName,
ClassDataContract
classContract, ContractCodeDomInfo contractCodeDomInfo, Dictionary<XmlQualifiedName, object> contractNamesInHierarchy)
315
ClassDataContract
baseContract = classContract.BaseContract;
609
GenerateKeyValueType(itemContract as
ClassDataContract
);
643
ClassDataContract
itemContract = collectionContract.ItemContract as
ClassDataContract
;
807
void ExportClassDataContract(
ClassDataContract
classDataContract, ContractCodeDomInfo contractCodeDomInfo)
944
else if (dataContract is
ClassDataContract
)
950
return GetKnownTypeContracts((
ClassDataContract
)dataContract, new Dictionary<DataContract, object>());
955
DataContractDictionary GetKnownTypeContracts(
ClassDataContract
dataContract, Dictionary<DataContract, object> handledContracts)
972
else if (memberContract is
ClassDataContract
)
979
AddKnownTypeContracts(dataContract, GetKnownTypeContracts((
ClassDataContract
)memberContract, handledContracts));
991
void AddKnownTypeContracts(
ClassDataContract
dataContract, DataContractDictionary knownContracts)
1006
void AddKnownTypes(
ClassDataContract
dataContract, ContractCodeDomInfo contractCodeDomInfo)
1119
void ExportISerializableDataContract(
ClassDataContract
dataContract, ContractCodeDomInfo contractCodeDomInfo)
1170
void GenerateKeyValueType(
ClassDataContract
keyValueContract)
1210
GenerateKeyValueType(collectionContract.ItemContract as
ClassDataContract
);
System\Runtime\Serialization\CollectionDataContract.cs (2)
284
XmlDictionaryString tempChildElementNamespace =
ClassDataContract
.GetChildNamespaceToDeclare(this, ItemType, new XmlDictionary());
675
itemContract =
ClassDataContract
.CreateClassDataContractForKeyValue(ItemType, Namespace, new string[] { KeyName, ValueName });
System\Runtime\Serialization\DataContract.cs (6)
83
if (dataContract is
ClassDataContract
)
109
internal static int GetIdForInitialization(
ClassDataContract
classContract)
476
internal static int GetIdForInitialization(
ClassDataContract
classContract)
596
if (type.IsSerializable || type.IsDefined(Globals.TypeOfDataContractAttribute, false) ||
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type))
1299
return (DataContract.GetBuiltInDataContract(type) != null ||
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type));
1492
if (
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type))
System\Runtime\Serialization\DataContractSet.cs (6)
146
if (dataContract is
ClassDataContract
)
148
AddClassDataContract((
ClassDataContract
)dataContract);
161
void AddClassDataContract(
ClassDataContract
classDataContract)
195
ClassDataContract
keyValueContract = collectionDataContract.ItemContract as
ClassDataContract
;
508
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type));
System\Runtime\Serialization\EnumDataContract.cs (2)
299
ClassDataContract
.CheckAndAddMember(tempMembers, memberContract, memberValuesTable);
313
ClassDataContract
.CheckAndAddMember(tempMembers, memberContract, memberValuesTable);
System\Runtime\Serialization\Json\JsonClassDataContract.cs (5)
24
public JsonClassDataContract(
ClassDataContract
traditionalDataContract)
97
ClassDataContract
TraditionalClassDataContract
129
ClassDataContract
traditionalClassDataContract;
132
public JsonClassDataContractCriticalHelper(
ClassDataContract
traditionalDataContract)
157
internal
ClassDataContract
TraditionalClassDataContract
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
267
else if (traditionalDataContractType == typeof(
ClassDataContract
))
269
dataContract = new JsonClassDataContract((
ClassDataContract
)traditionalDataContract);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (18)
35
public JsonFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
119
public JsonFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
253
void DemandSerializationFormatterPermission(
ClassDataContract
classContract)
262
void CreateObject(
ClassDataContract
classContract)
296
void InvokeOnDeserializing(
ClassDataContract
classContract)
310
void InvokeOnDeserialized(
ClassDataContract
classContract)
324
bool HasFactoryMethod(
ClassDataContract
classContract)
329
bool InvokeFactoryMethod(
ClassDataContract
classContract)
344
void ReadClass(
ClassDataContract
classContract)
353
ClassDataContract
currentContract = classContract;
366
void ReadMembers(
ClassDataContract
classContract, LocalBuilder extensionDataLocal)
413
int ReadMembers(
ClassDataContract
classContract, BitFlagsGenerator expectedElements,
476
int SetRequiredElements(
ClassDataContract
contract, byte[] requiredElements)
505
void ReadISerializable(
ClassDataContract
classContract)
779
ClassDataContract
keyValueDataContract = (
ClassDataContract
)collectionContract.ItemContract;
1018
ClassDataContract
keyValuePairContract = DataContract.GetDataContract(value.LocalType) as
ClassDataContract
;
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (10)
13
delegate void JsonFormatClassWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
ClassDataContract
dataContract, XmlDictionaryString[] memberNames);
31
internal JsonFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
89
internal JsonFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
200
void DemandSerializationFormatterPermission(
ClassDataContract
classContract)
208
void ThrowIfCannotSerializeReadOnlyTypes(
ClassDataContract
classContract)
230
void InvokeOnSerializing(
ClassDataContract
classContract)
243
void InvokeOnSerialized(
ClassDataContract
classContract)
256
void WriteClass(
ClassDataContract
classContract)
282
int WriteMembers(
ClassDataContract
classContract, LocalBuilder extensionDataLocal,
ClassDataContract
derivedMostClassContract)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
108
return (contract is
ClassDataContract
);
System\Runtime\Serialization\SchemaExporter.cs (7)
95
if (dataContract is
ClassDataContract
)
97
ClassDataContract
classDataContract = (
ClassDataContract
)dataContract;
125
void ExportClassDataContract(
ClassDataContract
classDataContract, XmlSchema schema)
380
ClassDataContract
keyValueContract = collectionDataContract.ItemContract as
ClassDataContract
;
459
void ExportISerializableDataContract(
ClassDataContract
dataContract, XmlSchema schema)
System\Runtime\Serialization\SchemaImporter.cs (15)
531
ClassDataContract
oldContract = this.dataContractSet[typeName] as
ClassDataContract
;
535
ClassDataContract
ancestorDataContract = oldContract.BaseContract;
662
ClassDataContract
ImportClass(XmlQualifiedName typeName, XmlSchemaSequence rootSequence, XmlQualifiedName baseTypeName, XmlSchemaAnnotation annotation, bool isReference)
664
ClassDataContract
dataContract = new ClassDataContract();
842
ClassDataContract
ImportISerializable(XmlQualifiedName typeName, XmlSchemaSequence rootSequence, XmlQualifiedName baseTypeName, XmlSchemaObjectCollection attributes, XmlSchemaAnnotation annotation)
844
ClassDataContract
dataContract = new ClassDataContract();
918
void ImportBaseContract(XmlQualifiedName baseTypeName,
ClassDataContract
dataContract)
920
ClassDataContract
baseContract = ImportType(baseTypeName) as
ClassDataContract
;
928
ClassDataContract
ancestorDataContract = baseContract;
966
void ImportClassMember(XmlSchemaElement element,
ClassDataContract
dataContract)
1020
int compare =
ClassDataContract
.DataMemberComparer.Singleton.Compare(prevMember, currentMember);
1113
ClassDataContract
keyValueContract = dataContract.ItemContract as
ClassDataContract
;
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (4)
903
contractNamespacesField = typeof(
ClassDataContract
).GetField("ContractNamespaces", Globals.ScanAllMembers);
916
memberNamesField = typeof(
ClassDataContract
).GetField("MemberNames", Globals.ScanAllMembers);
942
childElementNamespacesProperty = typeof(
ClassDataContract
).GetProperty("ChildElementNamespaces", Globals.ScanAllMembers);
1046
classSerializationExceptionMessageProperty = typeof(
ClassDataContract
).GetProperty("SerializationExceptionMessage", Globals.ScanAllMembers);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (17)
42
public XmlFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
120
public XmlFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
247
void DemandSerializationFormatterPermission(
ClassDataContract
classContract)
255
void CreateObject(
ClassDataContract
classContract)
289
void InvokeOnDeserializing(
ClassDataContract
classContract)
303
void InvokeOnDeserialized(
ClassDataContract
classContract)
317
bool HasFactoryMethod(
ClassDataContract
classContract)
322
bool InvokeFactoryMethod(
ClassDataContract
classContract, LocalBuilder objectId)
337
void ReadClass(
ClassDataContract
classContract)
346
ClassDataContract
currentContract = classContract;
359
void ReadMembers(
ClassDataContract
classContract, LocalBuilder extensionDataLocal)
397
int ReadMembers(
ClassDataContract
classContract, bool[] requiredMembers, Label[] memberLabels, LocalBuilder memberIndexLocal, LocalBuilder requiredIndexLocal)
441
bool[] GetRequiredMembers(
ClassDataContract
contract, out int firstRequiredMember)
452
int GetRequiredMembers(
ClassDataContract
contract, bool[] requiredMembers)
463
void ReadISerializable(
ClassDataContract
classContract)
869
ClassDataContract
keyValuePairContract = DataContract.GetDataContract(value.LocalType) as
ClassDataContract
;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (13)
22
internal delegate void XmlFormatClassWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
dataContract);
41
internal XmlFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
102
internal XmlFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
195
void DemandSerializationFormatterPermission(
ClassDataContract
classContract)
203
void ThrowIfCannotSerializeReadOnlyTypes(
ClassDataContract
classContract)
225
void InvokeOnSerializing(
ClassDataContract
classContract)
238
void InvokeOnSerialized(
ClassDataContract
classContract)
251
void WriteClass(
ClassDataContract
classContract)
299
int WriteMembers(
ClassDataContract
classContract, LocalBuilder extensionDataLocal,
ClassDataContract
derivedMostClassContract)
783
bool CheckIfMemberHasConflict(DataMember member,
ClassDataContract
classContract,
ClassDataContract
derivedMostClassContract)
792
ClassDataContract
currentContract = derivedMostClassContract;
System\Runtime\Serialization\XmlObjectSerializer.cs (2)
368
ClassDataContract
classContract = contract as
ClassDataContract
;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
701
else if (dataContract is
ClassDataContract
)
System\Runtime\Serialization\XPathQueryGenerator.cs (4)
59
if (contract is
ClassDataContract
)
61
return ProcessClassDataContract((
ClassDataContract
)contract, context, memberNode);
66
static DataContract ProcessClassDataContract(
ClassDataContract
contract, ExportContext context, MemberInfo memberNode)
80
static IEnumerable<DataMember> GetDataMembers(
ClassDataContract
contract)