10 references to DataContractResolver
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
160
if (
DataContractResolver
== null)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (9)
153
if (
DataContractResolver
!= null)
177
if (!WriteClrTypeInfo(xmlWriter, dataContract) &&
DataContractResolver
!= null)
539
if (
DataContractResolver
!= null)
602
Debug.Assert(
DataContractResolver
!= null);
604
if (!
DataContractResolver
.TryResolveType(objectType, declaredType, KnownTypeResolver, out typeName, out typeNamespace))
606
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(
DataContractResolver
.GetType()), DataContract.GetClrTypeFullName(objectType)));
616
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(
DataContractResolver
.GetType()), DataContract.GetClrTypeFullName(objectType)));
621
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(
DataContractResolver
.GetType()), DataContract.GetClrTypeFullName(objectType)));
632
if (
DataContractResolver
== null)