private static void RefTest2() { var refernce = new ReferenceType("sugu", 22); Console.WriteLine(refernce.ToString()); PropertyChange(refernce); Console.WriteLine(refernce.ToString()); }
private static void RefTest() { ReferenceType referencetype = new ReferenceType("sugu", 22); Console.WriteLine(referencetype.ToString()); GetReference(referencetype); Console.WriteLine(referencetype.ToString()); GetReferenceRef(ref referencetype); Console.WriteLine(referencetype.ToString()); GetReferenceOut(out referencetype); Console.WriteLine(referencetype.ToString()); }