PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / Serialization­Services Class / Serialization­Services Methods / Serialization­Services.​Get­Serialization­Exception Method / Serialization­Services.​Get­Serialization­Exception Method (Parameter­Info)

SerializationServices.GetSerializationException Method (ParameterInfo)

Checks whether a given ParameterInfo can be safely serialized.

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public static PortableSerializationException GetSerializationException(
	ParameterInfo parameterInfo
)

Parameters

parameterInfo
Type: System.Reflection.ParameterInfo
The declaration to be serialized.

Return Value

Type: PortableSerializationException
null if parameterInfo can be safely serialized, otherwise an exception where the text describes the reason why the declaration is not serializable.
See Also