2 instantiations of EnumDataContract
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\DataContract.cs (1)
462
dataContract = new
EnumDataContract
(type);
System\Runtime\Serialization\SchemaImporter.cs (1)
1195
EnumDataContract dataContract = new
EnumDataContract
(Globals.TypeOfSchemaDefinedEnum);
16 references to EnumDataContract
System.Private.DataContractSerialization (16)
System\Runtime\Serialization\EnumDataContract.cs (2)
18
internal const string ContractTypeString = nameof(
EnumDataContract
);
420
if (other is
EnumDataContract
enumContract)
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
253
else if (traditionalDataContractType == typeof(
EnumDataContract
))
255
dataContract = new JsonEnumDataContract((
EnumDataContract
)traditionalDataContract);
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (2)
15
public JsonEnumDataContract(
EnumDataContract
traditionalDataContract)
61
public JsonEnumDataContractCriticalHelper(
EnumDataContract
traditionalEnumDataContract)
System\Runtime\Serialization\SchemaExporter.cs (3)
97
else if (dataContract is
EnumDataContract
)
98
ExportEnumDataContract((
EnumDataContract
)dataContract, schema);
423
private void ExportEnumDataContract(
EnumDataContract
enumDataContract, XmlSchema schema)
System\Runtime\Serialization\SchemaImporter.cs (5)
553
return ((restriction.BaseTypeName == expectedBase && restriction.Facets.Count > 0) || ImportType(restriction.BaseTypeName) is
EnumDataContract
);
558
return (baseContract.XmlName == expectedBase || baseContract is
EnumDataContract
);
1170
private
EnumDataContract
? ImportFlagsEnum(XmlQualifiedName typeName, XmlSchemaSimpleTypeList list, XmlSchemaAnnotation? annotation)
1193
private
EnumDataContract
ImportEnum(XmlQualifiedName typeName, XmlSchemaSimpleTypeRestriction restriction, bool isFlags, XmlSchemaAnnotation? annotation)
1195
EnumDataContract
dataContract = new EnumDataContract(Globals.TypeOfSchemaDefinedEnum);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
684
else if (dataContract is
EnumDataContract
)
686
dataNode = new DataNode<object>(((
EnumDataContract
)dataContract).ReadEnumValue(xmlReader));