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