supplied placeholder to the console using the C# typeof() operator. Now consider the following
// Swap 2 ints.
int a = 10, b = 90;
Console.WriteLine("Before swap: {0}, {1}", a, b);
Swap(ref a, ref b);
Console.WriteLine("After swap: {0}, {1}", a, b);
Console.WriteLine();
Do'stlaringiz bilan baham: