2 using System
.Linq
.Expressions
;
9 public static int Main ()
11 var (xx
, yy
) = (1, 2);
26 (s_xx
, s_yy
) = Test3 ();
33 // var cwd = new ClassWithDeconstruct ();
34 // var (m1, m2) = cwd;
36 // (string, string) ss = cwd; // Error
44 (c
.Prop1
, c
.Prop2
) = (1, 2);
47 static (int, long) Test3 ()
52 static void TestCustom ()
58 class ClassWithDeconstruct
60 public void Deconstruct (out string f
, out string s
)
69 public int Prop1 { get; set; }
70 public int Prop2 { get; set; }