22 types derived from PrimitiveDataContract
System.Private.DataContractSerialization (22)
System\Runtime\Serialization\PrimitiveDataContract.cs (22)
169internal class CharDataContract : PrimitiveDataContract 210internal sealed class BooleanDataContract : PrimitiveDataContract 242internal sealed class SignedByteDataContract : PrimitiveDataContract 274internal sealed class UnsignedByteDataContract : PrimitiveDataContract 306internal sealed class ShortDataContract : PrimitiveDataContract 338internal sealed class UnsignedShortDataContract : PrimitiveDataContract 370internal sealed class NullPrimitiveDataContract : PrimitiveDataContract 423internal sealed class IntDataContract : PrimitiveDataContract 455internal sealed class UnsignedIntDataContract : PrimitiveDataContract 487internal class LongDataContract : PrimitiveDataContract 548internal sealed class UnsignedLongDataContract : PrimitiveDataContract 580internal sealed class FloatDataContract : PrimitiveDataContract 612internal sealed class DoubleDataContract : PrimitiveDataContract 644internal sealed class DecimalDataContract : PrimitiveDataContract 676internal sealed class DateTimeDataContract : PrimitiveDataContract 708internal class StringDataContract : PrimitiveDataContract 850internal sealed class ByteArrayDataContract : PrimitiveDataContract 890internal sealed class ObjectDataContract : PrimitiveDataContract 939internal class TimeSpanDataContract : PrimitiveDataContract 980internal class GuidDataContract : PrimitiveDataContract 1021internal sealed class UriDataContract : PrimitiveDataContract 1059internal sealed class QNameDataContract : PrimitiveDataContract
70 references to PrimitiveDataContract
System.Private.DataContractSerialization (70)
System\Runtime\Serialization\DataMember.cs (6)
72internal PrimitiveDataContract? MemberPrimitiveContract 115_memberPrimitiveContract = PrimitiveDataContract.NullContract; 223private PrimitiveDataContract? _memberPrimitiveContract; 225internal PrimitiveDataContract? MemberPrimitiveContract 231if (_memberPrimitiveContract == PrimitiveDataContract.NullContract) 233_memberPrimitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(MemberType);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (4)
478PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(type); 912PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (8)
510PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(type); 558PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType); 639PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(memberType); 661PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(memberType);
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (7)
49PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType); 89PrimitiveDataContract? primitiveContractForType = PrimitiveDataContract.GetPrimitiveDataContract(collectionContract.UnderlyingType); 146PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType); 248PrimitiveDataContract? primitiveContract = member.MemberPrimitiveContract;
System\Runtime\Serialization\PrimitiveDataContract.cs (7)
16internal const string ContractTypeString = nameof(PrimitiveDataContract); 19internal static readonly PrimitiveDataContract NullContract = new NullPrimitiveDataContract(); 32internal static PrimitiveDataContract? GetPrimitiveDataContract(Type type) 34return DataContract.GetBuiltInDataContract(type) as PrimitiveDataContract; 39internal static PrimitiveDataContract? GetPrimitiveDataContract(string name, string ns) 41return DataContract.GetBuiltInDataContract(name, ns) as PrimitiveDataContract; 126if (other is PrimitiveDataContract)
System\Runtime\Serialization\ReflectionClassWriter.cs (5)
46public static void ReflectionWriteValue(XmlWriterDelegator xmlWriter, XmlObjectSerializerWriteContext context, Type type, object? value, bool writeXsiType, PrimitiveDataContract? primitiveContractForParamType) 55PrimitiveDataContract? primitiveContract = primitiveContractForParamType; 87PrimitiveDataContract? primitiveContract = originValueIsNullableOfT ? PrimitiveDataContract.GetPrimitiveDataContract(memberType) : primitiveContractForParamType; 120protected static bool ReflectionTryWritePrimitive(XmlWriterDelegator xmlWriter, XmlObjectSerializerWriteContext context, object? value, XmlDictionaryString name, XmlDictionaryString? ns, PrimitiveDataContract? primitiveContract)
System\Runtime\Serialization\ReflectionReader.cs (9)
249protected object? ReflectionReadValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, Type type, string name, string ns, PrimitiveDataContract? primitiveContractForOriginalType = null) 259PrimitiveDataContract? primitiveContract = nullables != 0 ? 260PrimitiveDataContract.GetPrimitiveDataContract(type) 261: (primitiveContractForOriginalType ?? PrimitiveDataContract.GetPrimitiveDataContract(type)); 277private object? ReadItemOfPrimitiveType(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, Type type, string name, string ns, PrimitiveDataContract? primitiveContract, int nullables) 354PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(type); 630PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType);
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (7)
45PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType); 59PrimitiveDataContract? primitiveContractForType = PrimitiveDataContract.GetPrimitiveDataContract(collectionDataContract.UnderlyingType); 98PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType); 182PrimitiveDataContract? primitiveContract = member.MemberPrimitiveContract;
System\Runtime\Serialization\SchemaImporter.cs (2)
207return dataContract is PrimitiveDataContract && ((PrimitiveDataContract)dataContract).UnderlyingType == Globals.TypeOfObject;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (4)
515PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(type); 843PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (8)
543PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(type); 591PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(itemType); 652PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(memberType); 674PrimitiveDataContract? primitiveContract = PrimitiveDataContract.GetPrimitiveDataContract(memberType);
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
426DataContract objectContract = PrimitiveDataContract.GetPrimitiveDataContract(Globals.TypeOfObject)!;
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
245PrimitiveDataContract.GetPrimitiveDataContract(typeName.Name, typeName.Namespace) ??
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
669else if (dataContract is PrimitiveDataContract)