PostSharpAPI ReferencePost­Sharp.​SerializationISerializer­Factory­ProviderGet­Surrogate­Type
Open sandboxFocus

Method GetSurrogateType

GetSurrogateType(Type)

Gets the surrogate type for a given object type.

Declaration
Type GetSurrogateType(Type objectType)
Parameters
Type Name Description
Type objectType

Type of the object being serialized.

Returns
Type Description
Type

The surrogate type for objectType, or null (or objectType) is objectType does not require a surrogate type.