7 references to TraditionalDataContract
System.Runtime.Serialization (7)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (2)
68
if (this.
TraditionalDataContract
.UnderlyingType.IsInterface && (kind == CollectionKind.Enumerable || kind == CollectionKind.Collection || kind == CollectionKind.GenericEnumerable))
70
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GetOnlyCollectionMustHaveAddMethod, DataContract.GetClrTypeFullName(this.
TraditionalDataContract
.UnderlyingType))));
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
89
return
TraditionalDataContract
.ReadXmlValue(jsonReader, context);
101
TraditionalDataContract
.WriteXmlValue(jsonWriter, obj, context);
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (2)
39
enumValue = Enum.ToObject(
TraditionalDataContract
.UnderlyingType, jsonReader.ReadElementContentAsUnsignedLong());
43
enumValue = Enum.ToObject(
TraditionalDataContract
.UnderlyingType, jsonReader.ReadElementContentAsLong());
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
23
DataContractSerializer dataContractSerializer = new DataContractSerializer(
TraditionalDataContract
.UnderlyingType,