Exemplo n.º 1
0
 public Node(Node node)
 {
     this.key   = node.key;
     this.value = node.value;
     this.Left  = node.Left;
     this.Right = node.Right;
 }
Exemplo n.º 2
0
 public Node(Tkey key1, Tvalue value1)
 {
     this.key   = key1;
     this.value = value1;
     this.Left  = null;
     this.Right = null;
 }
Exemplo n.º 3
0
        public static void Main(string[] args)
        {
            Square sq  = (a) => a * a;
            int    rez = sq(5);

            Console.WriteLine(rez);

            LoginService.SetLogin();
            LoginService.SetPassword();

            CustomDelegate <int> cd = (int Tvalue) => Console.WriteLine(Tvalue);

            cd(11111);

            CustomDelegate <double> cd2 = (double Tvalue) => Console.WriteLine(Tvalue + 2);

            cd2(0.1);

            CustomDelegate <string> cd3 = (string Tvalue) => Console.WriteLine(Tvalue.IndexOf('a'));

            cd3("aaa");
        }
Exemplo n.º 4
0
 public MyDictionaryPair(Tkey key, Tvalue value)
 {
     this.key   = key;
     this.value = value;
 }
Exemplo n.º 5
0
 public Entry(Tvalue value)
 {
     Value        = value;
     AdditionDate = DateTime.Now;
 }
Exemplo n.º 6
0
 public KeyValue(Tkey key, Tvalue value)
 {
     this.Key   = key;
     this.Value = value;
 }