7 instantiations of ClassDataContract
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\ClassDataContract.cs (2)
253
return new
ClassDataContract
(type, ns, memberNames);
1362
ClassDataContract boundClassContract = new
ClassDataContract
(boundType);
System\Runtime\Serialization\CollectionDataContract.cs (1)
919
return new
ClassDataContract
(type);
System\Runtime\Serialization\DataContract.cs (2)
480
dataContract = new
ClassDataContract
(type);
483
var originalDataContract = new
ClassDataContract
(originalType);
System\Runtime\Serialization\SchemaImporter.cs (2)
655
ClassDataContract dataContract = new
ClassDataContract
(Globals.TypeOfSchemaDefinedType);
825
ClassDataContract dataContract = new
ClassDataContract
(Globals.TypeOfSchemaDefinedType);
171 references to ClassDataContract
System.Private.DataContractSerialization (171)
System\Runtime\Serialization\ClassDataContract.cs (11)
21
internal const string ContractTypeString = nameof(
ClassDataContract
);
64
internal
ClassDataContract
? BaseClassContract
251
internal static
ClassDataContract
CreateClassDataContractForKeyValue(Type type, XmlDictionaryString ns, string[] memberNames)
591
private
ClassDataContract
? _baseContract;
651
BaseClassContract = collectionDC.SharedTypeContract as
ClassDataContract
;
655
BaseClassContract = baseContract as
ClassDataContract
;
984
ClassDataContract
? currContract = BaseClassContract;
1144
internal
ClassDataContract
? BaseClassContract
1362
ClassDataContract
boundClassContract = new ClassDataContract(boundType);
1367
boundClassContract.BaseClassContract = (
ClassDataContract
)BaseClassContract.BindGenericParameters(paramContracts, boundContracts);
1392
if (other is
ClassDataContract
dataContract)
System\Runtime\Serialization\CollectionDataContract.cs (8)
222
XmlDictionaryString? tempChildElementNamespace =
ClassDataContract
.GetChildNamespaceToDeclare(this, ItemType, new XmlDictionary());
501
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
515
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
527
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
542
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
565
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
589
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
619
_itemContract =
ClassDataContract
.CreateClassDataContractForKeyValue(ItemType, Namespace, new string[] { KeyName, ValueName });
System\Runtime\Serialization\DataContract.cs (11)
90
if (dataContract is
ClassDataContract
)
109
internal static int GetIdForInitialization(
ClassDataContract
classContract)
158
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
317
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
368
internal static int GetIdForInitialization(
ClassDataContract
classContract)
475
if (!type.IsSerializable && !type.IsDefined(Globals.TypeOfDataContractAttribute, false) && !
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type))
483
var
originalDataContract = new ClassDataContract(originalType);
941
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
949
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
1120
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type);
1302
if (
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type))
System\Runtime\Serialization\DataContractSet.cs (5)
124
if (dataContract is
ClassDataContract
classDC)
141
private void AddClassDataContract(
ClassDataContract
classDataContract)
181
ClassDataContract
keyValueContract = (collectionDataContract.ItemContract as
ClassDataContract
)!;
419
ClassDataContract
.IsNonAttributedTypeValidForSerialization(type));
System\Runtime\Serialization\EnumDataContract.cs (3)
125
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
246
ClassDataContract
.CheckAndAddMember(tempMembers, memberContract, memberValuesTable);
261
ClassDataContract
.CheckAndAddMember(tempMembers, memberContract, memberValuesTable);
System\Runtime\Serialization\GenericParameterDataContract.cs (1)
33
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
System\Runtime\Serialization\Json\JsonClassDataContract.cs (5)
20
public JsonClassDataContract(
ClassDataContract
traditionalDataContract)
92
private
ClassDataContract
TraditionalClassDataContract => _helper.TraditionalClassDataContract;
118
private readonly
ClassDataContract
_traditionalClassDataContract;
123
public JsonClassDataContractCriticalHelper(
ClassDataContract
traditionalDataContract)
148
internal
ClassDataContract
TraditionalClassDataContract
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
249
else if (traditionalDataContractType == typeof(
ClassDataContract
))
251
dataContract = new JsonClassDataContract((
ClassDataContract
)traditionalDataContract);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (17)
32
public JsonFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
64
public JsonFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
199
private void CreateObject(
ClassDataContract
classContract)
232
private void InvokeOnDeserializing(
ClassDataContract
classContract)
246
private void InvokeOnDeserialized(
ClassDataContract
classContract)
260
private static bool HasFactoryMethod(
ClassDataContract
classContract)
265
private bool InvokeFactoryMethod(
ClassDataContract
classContract)
283
private void ReadClass(
ClassDataContract
classContract)
292
ClassDataContract
? currentContract = classContract;
309
private void ReadMembers(
ClassDataContract
classContract, LocalBuilder? extensionDataLocal)
358
private int ReadMembers(
ClassDataContract
classContract, BitFlagsGenerator expectedElements,
422
private static int SetRequiredElements(
ClassDataContract
contract, byte[] requiredElements)
452
private void ReadISerializable(
ClassDataContract
classContract)
740
ClassDataContract
keyValueDataContract = (
ClassDataContract
)collectionContract.ItemContract;
990
ClassDataContract
? keyValuePairContract = DataContract.GetDataContract(value.LocalType) as
ClassDataContract
;
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (8)
16
internal delegate void JsonFormatClassWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
ClassDataContract
dataContract, XmlDictionaryString[]? memberNames);
30
internal JsonFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
57
internal JsonFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
174
private void InvokeOnSerializing(
ClassDataContract
classContract)
187
private void InvokeOnSerialized(
ClassDataContract
classContract)
202
private void WriteClass(
ClassDataContract
classContract)
232
private int WriteMembers(
ClassDataContract
classContract, LocalBuilder? extensionDataLocal,
ClassDataContract
derivedMostClassContract)
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (6)
20
private readonly
ClassDataContract
_classContract;
23
public ReflectionJsonClassReader(
ClassDataContract
classDataContract)
62
protected override void ReflectionReadMembers(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[]? memberNamespaces,
ClassDataContract
classContract, ref object obj)
100
protected override string GetClassContractNamespace(
ClassDataContract
classContract)
160
ClassDataContract
keyValueDataContract = (
ClassDataContract
)collectionContract.ItemContract;
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (3)
24
public void ReflectionWriteClass(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
ClassDataContract
classContract, XmlDictionaryString[]? memberNames)
202
protected override int ReflectionWriteMembers(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
classContract,
ClassDataContract
derivedMostClassContract, int childElementIndex, XmlDictionaryString[]? memberNames)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
140
return (contract is
ClassDataContract
);
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
24
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
142
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
System\Runtime\Serialization\ReflectionClassWriter.cs (5)
23
public void ReflectionWriteClass(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
classContract, XmlDictionaryString[]? memberNames)
111
protected abstract int ReflectionWriteMembers(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
classContract,
ClassDataContract
derivedMostClassContract, int childElementIndex, XmlDictionaryString[]? memberNames);
130
private static void InvokeOnSerializing(object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
classContract)
141
private static void InvokeOnSerialized(object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
classContract)
System\Runtime\Serialization\ReflectionReader.cs (9)
35
public object ReflectionReadClass(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context, XmlDictionaryString[]? memberNames, XmlDictionaryString[]? memberNamespaces,
ClassDataContract
classContract)
195
protected abstract void ReflectionReadMembers(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[]? memberNamespaces,
ClassDataContract
classContract, ref object obj);
202
protected abstract string GetClassContractNamespace(
ClassDataContract
classContract);
211
protected static int ReflectionGetMembers(
ClassDataContract
classContract, DataMember[] members)
225
protected void ReflectionReadMember(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context,
ClassDataContract
classContract, ref object obj, int memberIndex, DataMember[] members)
332
private static object ReadISerializable(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context,
ClassDataContract
classContract)
398
private static void InvokeOnDeserializing(XmlObjectSerializerReadContext context,
ClassDataContract
classContract, object obj)
409
private static void InvokeOnDeserialized(XmlObjectSerializerReadContext context,
ClassDataContract
classContract, object obj)
427
private static object CreateObject(
ClassDataContract
classContract)
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (6)
20
private readonly
ClassDataContract
_classContract;
23
public ReflectionXmlClassReader(
ClassDataContract
classDataContract)
61
protected override void ReflectionReadMembers(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[]? memberNamespaces,
ClassDataContract
classContract, ref object obj)
107
protected override string GetClassContractNamespace(
ClassDataContract
classContract)
131
private static bool[] GetRequiredMembers(
ClassDataContract
contract, out int firstRequiredMember)
142
private static int GetRequiredMembers(
ClassDataContract
contract, bool[] requiredMembers)
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (6)
21
public void ReflectionWriteClass(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
classContract)
137
protected override int ReflectionWriteMembers(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
classContract,
ClassDataContract
derivedMostClassContract, int childElementIndex, XmlDictionaryString[]? emptyStringArray)
230
private static bool CheckIfMemberHasConflict(DataMember member,
ClassDataContract
classContract,
ClassDataContract
derivedMostClassContract)
239
ClassDataContract
? currentContract = derivedMostClassContract;
System\Runtime\Serialization\SchemaExporter.cs (5)
88
if (dataContract is
ClassDataContract
classDataContract)
119
private void ExportClassDataContract(
ClassDataContract
classDataContract, XmlSchema schema)
381
ClassDataContract
keyValueContract = (collectionDataContract.ItemContract as
ClassDataContract
)!;
464
private void ExportISerializableDataContract(
ClassDataContract
dataContract, XmlSchema schema)
System\Runtime\Serialization\SchemaImporter.cs (15)
526
ClassDataContract
? oldContract = _dataContractSet.GetDataContract(typeName) as
ClassDataContract
;
530
ClassDataContract
? ancestorDataContract = oldContract.BaseClassContract;
653
private
ClassDataContract
ImportClass(XmlQualifiedName typeName, XmlSchemaSequence rootSequence, XmlQualifiedName? baseTypeName, XmlSchemaAnnotation? annotation, bool isReference)
655
ClassDataContract
dataContract = new ClassDataContract(Globals.TypeOfSchemaDefinedType);
823
private
ClassDataContract
ImportISerializable(XmlQualifiedName typeName, XmlSchemaSequence rootSequence, XmlQualifiedName? baseTypeName, XmlSchemaObjectCollection attributes, XmlSchemaAnnotation? annotation)
825
ClassDataContract
dataContract = new ClassDataContract(Globals.TypeOfSchemaDefinedType);
899
private void ImportBaseContract(XmlQualifiedName baseTypeName,
ClassDataContract
dataContract)
901
ClassDataContract
? baseContract = ImportType(baseTypeName) as
ClassDataContract
;
909
ClassDataContract
? ancestorDataContract = baseContract;
944
private void ImportClassMember(XmlSchemaElement element,
ClassDataContract
dataContract)
1007
int compare =
ClassDataContract
.DataMemberComparer.Singleton.Compare(prevMember, currentMember);
1104
ClassDataContract
? keyValueContract = dataContract.ItemContract as
ClassDataContract
;
System\Runtime\Serialization\SpecialTypeDataContract.cs (2)
14
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
26
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
System\Runtime\Serialization\XmlDataContract.cs (1)
137
[DynamicallyAccessedMembers(
ClassDataContract
.DataContractPreserveMemberTypes)]
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (4)
894
s_contractNamespacesField = typeof(
ClassDataContract
).GetField("ContractNamespaces", Globals.ScanAllMembers);
908
s_memberNamesField = typeof(
ClassDataContract
).GetField("MemberNames", Globals.ScanAllMembers);
926
s_childElementNamespacesProperty = typeof(
ClassDataContract
).GetProperty("ChildElementNamespaces", Globals.ScanAllMembers);
1081
s_classSerializationExceptionMessageProperty = typeof(
ClassDataContract
).GetProperty("SerializationExceptionMessage", Globals.ScanAllMembers);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (17)
36
public XmlFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
73
private static XmlFormatClassReaderDelegate CreateReflectionXmlClassReader(
ClassDataContract
classContract)
80
public XmlFormatClassReaderDelegate GenerateClassReader(
ClassDataContract
classContract)
254
private void CreateObject(
ClassDataContract
classContract)
290
private void InvokeOnDeserializing(
ClassDataContract
classContract)
307
private void InvokeOnDeserialized(
ClassDataContract
classContract)
324
private static bool HasFactoryMethod(
ClassDataContract
classContract)
329
private bool InvokeFactoryMethod(
ClassDataContract
classContract, LocalBuilder? objectId)
349
private void ReadClass(
ClassDataContract
classContract)
358
ClassDataContract
? currentContract = classContract;
375
private void ReadMembers(
ClassDataContract
classContract, LocalBuilder? extensionDataLocal)
415
private int ReadMembers(
ClassDataContract
classContract, bool[] requiredMembers, Label[] memberLabels, LocalBuilder memberIndexLocal, LocalBuilder? requiredIndexLocal)
465
private static bool[] GetRequiredMembers(
ClassDataContract
contract, out int firstRequiredMember)
476
private static int GetRequiredMembers(
ClassDataContract
contract, bool[] requiredMembers)
488
private void ReadISerializable(
ClassDataContract
classContract)
919
ClassDataContract
? keyValuePairContract = DataContract.GetDataContract(value.LocalType) as
ClassDataContract
;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (11)
20
internal delegate void XmlFormatClassWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContext context,
ClassDataContract
dataContract);
33
internal XmlFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
74
internal XmlFormatClassWriterDelegate GenerateClassWriter(
ClassDataContract
classContract)
207
private void InvokeOnSerializing(
ClassDataContract
classContract)
220
private void InvokeOnSerialized(
ClassDataContract
classContract)
235
private void WriteClass(
ClassDataContract
classContract)
289
private int WriteMembers(
ClassDataContract
classContract, LocalBuilder? extensionDataLocal,
ClassDataContract
derivedMostClassContract)
790
private static bool CheckIfMemberHasConflict(DataMember member,
ClassDataContract
classContract,
ClassDataContract
derivedMostClassContract)
799
ClassDataContract
? currentContract = derivedMostClassContract;
System\Runtime\Serialization\XmlObjectSerializer.cs (2)
415
ClassDataContract
? classContract = contract as
ClassDataContract
;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
689
else if (dataContract is
ClassDataContract
)
System\Runtime\Serialization\XPathQueryGenerator.cs (4)
63
if (contract is
ClassDataContract
)
65
return ProcessClassDataContract((
ClassDataContract
)contract, context, memberNode);
72
private static DataContract ProcessClassDataContract(
ClassDataContract
contract, ExportContext context, MemberInfo memberNode)
86
private static IEnumerable<DataMember> GetDataMembers(
ClassDataContract
contract)