Use the Non-Serializable attribute to avoid serialization

By [)ia6l0 iii

We can use the Non-serializable attribute on any object to avoid serialization

[NonSerialized()]
public string myString;

Use the Non-Serializable attribute to avoid serialization  (1033 Views)