ProxyDataContractResolver.TryResolveType Method (Type, Type, DataContractResolver, XmlDictionaryString, XmlDictionaryString)

 

During serialization, maps actual types to xsi:type information.

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public override bool TryResolveType(
	Type type,
	Type declaredType,
	DataContractResolver knownTypeResolver,
	out XmlDictionaryString typeName,
	out XmlDictionaryString typeNamespace
)

Parameters

type
Type: System.Type

The actual type of the persistence-ignorant object.

declaredType
Type: System.Type

The declared type.

knownTypeResolver
Type: System.Runtime.Serialization.DataContractResolver

An instance of ProxyDataContractResolver.

typeName
Type: System.Xml.XmlDictionaryString

When this method returns, contains a list of xsi:type declarations.

typeNamespace
Type: System.Xml.XmlDictionaryString

When this method returns, contains a list of namespaces used.

Return Value

Type: System.Boolean

true if the type was resolved; otherwise, false.