Exemple #1
0
        static void Main(string[] args)
        {
            variant v = 5;

            Console.WriteLine(v.ToString());
            int x = v;

            Console.WriteLine(x);
            v += 10;
            Console.WriteLine(v.ToString());
            v += "10";
            Console.WriteLine(v.ToString());
            string s = v;

            Console.WriteLine(s);

            x = 20;
            v = x;
            s = v;
            x = v;
            Console.WriteLine("{0} - {1} - {2}", x, v, s);

            /*object var1, var2, var3;
             * var1 = 4;
             * var2 = 5;
             * var3 = var1 + var2;*/
        }
Exemple #2
0
 public variant(variant v)
 {
     setData(v.data, v.TYPE);
 }