'NonSerialized' attribute will not affect this member because its containing class is not exposed as 'Serializable'
By default, classes and their members are non-serializable. The NonSerializedAttribute attribute is only needed if a member of a serializable class should not be serialized.
Error ID: BC30772
To correct this error
Add the SerializableAttribute attribute to the class.
—or—
Remove the NonSerializedAttribute attribute from the member.