Is it possible to swap two variables without using ref/out keyword in C#(i.e. by using unsafe)?
for ex,
swap(ref x,ref y);//It is possbile to by passing the reference
But, Is there any other way of doing the same thing. In the swap function you can use a temp variable. But, How to swap the variables without using ref/out keywords in C#?