SerializationServices.GetSerializationException Method (LocationInfo) |
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static PortableSerializationException GetSerializationException( LocationInfo locationInfo )
Parameters
- locationInfo
- Type: PostSharp.Reflection.LocationInfo
The declaration to be serialized.
Return Value
Type: PortableSerializationExceptionnull if locationInfo can be safely serialized, otherwise an exception where the text describes the reason why the declaration is not serializable.