PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Composition­Aspect Class / Composition­Aspect Properties / Composition­Aspect.​Non­Serialized­Implementation Property

CompositionAspect.NonSerializedImplementation Property

Determines whether the field containing the interface implementation (and storing the object returned by CreateImplementationObject(AdviceArgs)) should be excluded from serialization by BinaryFormatter. The same effect is typically obtained by applying the NonSerializedAttribute custom attribute to the field.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
protected bool NonSerializedImplementation { get; set; }

Property Value

Type: Boolean
See Also