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