NonSerialized
attributeThe presence of the NonSerialized
attribute on a field or property indicates that that field or property should not be serialized.
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class NonSerializedAttribute: System.Attribute { public NonSerializedAttribute() {…} }