Esempio n. 1
0
        public static void GenericSwapExample()
        {
            int x = 3, y = 5;

            Console.WriteLine("X = {0}, Y = {1}", x, y);
            GenericsExamples.GenericSwap <int>(ref x, ref y);
            Console.WriteLine("After swapping, X = {0}, Y = {1}", x, y);
        }
Esempio n. 2
0
        public static void GenericQueueStackExample()
        {
            Console.WriteLine("STACK EXAMPLE");
            Console.WriteLine("-------------");
            GenericsExamples.StackExample();

            Console.WriteLine("\n\nQUEUE EXAMPLE");
            Console.WriteLine("-------------");
            GenericsExamples.QueueExample();
        }
Esempio n. 3
0
 public static void GenericLinkedListExample()
 {
     GenericsExamples.LinkedListExample();
 }
Esempio n. 4
0
 public static void GenericDictionaryExample()
 {
     GenericsExamples.DictionaryExample();
 }
Esempio n. 5
0
 public static void GenericSortedSetExample()
 {
     GenericsExamples.SortedSetExample();
 }
Esempio n. 6
0
 public static void GenericObjectListExample()
 {
     GenericsExamples.ListOfObjects();
 }