Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

swap two numbers c#

static void Swap<T> (ref T a, ref T b)
{
  T temp = a;
  a = b;
  b = temp;
}
Source by learning.oreilly.com #
 
PREVIOUS NEXT
Tagged: #swap #numbers
ADD COMMENT
Topic
Name
8+4 =