Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Person p = new Person();
     p.name = "Jon";
     Console.WriteLine("minchev poxel@");
     Console.WriteLine(p.name);
     Console.WriteLine("kancheci F functian");
     F(ref p);
     Console.WriteLine("noric mer p person@");
     Console.WriteLine(p.name);
     Console.WriteLine();
     Console.WriteLine("///////////////////");
     int X = 100;
     Console.WriteLine("skzbum X= {0}", X);
     Console.Write("heto kancheci D-n: ");
     D(out X);
     Console.WriteLine("hima eli mer X-@: {0}", X);
     Console.WriteLine("///////////////////");
     string s1 = "my string";
     Console.WriteLine("skzbum s1: {0}", s1);
     Console.Write("heto kanchecinq E: ");
     E(ref s1);
     Console.WriteLine("hima noric mer s1= {0}", s1);
     Console.Read();
 }
Ejemplo n.º 2
0
 static void F(ref Person p1)
 {
     p1.name = "Bob";
     Console.WriteLine(p1.name);
 }