Passing Objects By Reference or Value in C#
In C#, I have always thought that non-primitive variables were passed by reference and primitive values passed by value. So when passing to a method any non-primitive object, anything done to the object in the method would effect the object being passed. (C# 101 stuff) However, I have noticed that when I pass a System.Drawing.Image … Read more