Example #1
0
 public static void Main()
 {
     var rt = new SampleRefType();
     rt.value = 44;
     ModifyObject(rt);
     Console.WriteLine(rt.value);
 }
Example #2
0
    //<Snippet75>
    public static void TestRefType()
    {
        SampleRefType rt = new SampleRefType();

        rt.value = 44;
        ModifyObject(rt);
        Console.WriteLine(rt.value);
    }
Example #3
0
 static void ModifyObject(SampleRefType obj)
 {
     obj.value = 33;
 }
Example #4
0
 static void ModifyObject(SampleRefType obj)
 {
     obj.value = 33;
 }