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