ProxyDataContractResolver.ResolveName Method (String, String, Type, DataContractResolver)

.NET Framework (current version)
 

During deserialization, maps any xsi:type information to the actual type of the persistence-ignorant object.

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

public override Type ResolveName(
	string typeName,
	string typeNamespace,
	Type declaredType,
	DataContractResolver knownTypeResolver
)

Parameters

typeName
Type: System.String

The xsi:type information to map.

typeNamespace
Type: System.String

The namespace of the xsi:type.

declaredType
Type: System.Type

The declared type.

knownTypeResolver
Type: System.Runtime.Serialization.DataContractResolver

An instance of ProxyDataContractResolver.

Return Value

Type: System.Type

Returns the type that the xsi:type is mapped to. Returns null if no known type was found that matches the xsi:type.

For more information, see: Working with POCO Entities.

.NET Framework
Available since 4.0
Return to top
Show: