2 using System.Linq.Expressions;
6 public static int Main ()
8 // var (xx, yy) = (1, 2);
23 // var (l1, l2) = ('a', 'b');
25 // var cwd = new ClassWithDeconstruct ();
26 // var (m1, m2) = cwd;
28 // (string, string) ss = cwd; // Error
36 (c.Prop1, c.Prop2) = (1, 2);
39 static void var1 (object o1, object o2)
43 static void TestCustom ()
49 class ClassWithDeconstruct
51 public void Deconstruct (out string f, out string s)
60 public int Prop1 { get; set; }
61 public int Prop2 { get; set; }