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;*/ }
public variant(variant v) { setData(v.data, v.TYPE); }