swap two numbers c#

36

swap two numbers c# -

static void Swap<T> (ref T a, ref T b)
{
  T temp = a;
  a = b;
  b = temp;
}

Comments

Submit
0 Comments