Class DontSerializeAttribute
Use this attribute to flag a field or property to be ignored during serialization. This class cannot be inherited.
Namespace: Unity.Serialization
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class DontSerializeAttribute : Attribute, _Attribute