Transient Fields In .NET

This topic applies to .NET version only

There are different ways to prevent fields persistence in .NET:

Both methods will give you equal results:

Let's now check the results: