Passing reference types by ref and by value?
Reference types are always passed by reference so what’s the difference between passing a reference type by value or by ref keyword. Let’s try to understand by some code samples:
Let’s say we have a class MyClass defined below, Class in .Net is a reference type as you should know.
class Reftype { public int i; }