11 references to DataContractResolver
System.Runtime.Serialization (11)
System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
297
Type dataContractType =
DataContractResolver
.ResolveName(typeName.Name, typeName.Namespace, declaredType, KnownTypeResolver);
325
if (
DataContractResolver
== null)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
188
if (
DataContractResolver
== null)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (8)
169
if (
DataContractResolver
!= null)
194
if (!WriteClrTypeInfo(xmlWriter, dataContract) &&
DataContractResolver
!= null)
521
if (
DataContractResolver
!= null)
742
if (!
DataContractResolver
.TryResolveType(objectType, declaredType, KnownTypeResolver, out typeName, out typeNamespace))
744
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(
DataContractResolver
.GetType()), DataContract.GetClrTypeFullName(objectType))));
754
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(
DataContractResolver
.GetType()), DataContract.GetClrTypeFullName(objectType))));
759
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(
DataContractResolver
.GetType()), DataContract.GetClrTypeFullName(objectType))));
768
if (
DataContractResolver
== null)