예제 #1
0
        private static void RefTest2()
        {
            var refernce = new ReferenceType("sugu", 22);

            Console.WriteLine(refernce.ToString());
            PropertyChange(refernce);
            Console.WriteLine(refernce.ToString());
        }
예제 #2
0
        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());
        }