using System; using System.Collections.Generic; using System.Linq; using System.Text; namespaceDTATest { classProgram { classNode { publicint a; public Node(int a) { this.a = a; } public Node(Node a) { this.a = a.a; } } static List<Node> l, r;
staticvoid Main(string[] args) { l = new List<Node>(); l.Add(new Node(1)); l.Add(new Node(2)); r = new List<Node>(l); r[0].a += 2; r[1].a -= 5;