7 references to TraditionalDataContract
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (2)
70
if (this.
TraditionalDataContract
.UnderlyingType.IsInterface && (kind == CollectionKind.Enumerable || kind == CollectionKind.Collection || kind == CollectionKind.GenericEnumerable))
72
throw new InvalidDataContractException(SR.Format(SR.GetOnlyCollectionMustHaveAddMethod, DataContract.GetClrTypeFullName(this.
TraditionalDataContract
.UnderlyingType)));
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
91
return
TraditionalDataContract
.ReadXmlValue(jsonReader, context);
107
TraditionalDataContract
.WriteXmlValue(jsonWriter, obj, context);
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (2)
30
enumValue = Enum.ToObject(
TraditionalDataContract
.UnderlyingType, jsonReader.ReadElementContentAsUnsignedLong());
34
enumValue = Enum.ToObject(
TraditionalDataContract
.UnderlyingType, jsonReader.ReadElementContentAsLong());
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
30
DataContractSerializer dataContractSerializer = new DataContractSerializer(
TraditionalDataContract
.UnderlyingType,