1 // Not used -- ex-nullable-struct
3 // Converting a struct from S to S? creates a copy of the struct.
4 // Getting the struct out of the non-null value creates another copy.
12 set { this.x = value; } // Cannot be used on non-variable ns.Value
14 public void Set(int x) {
20 public static void Main(String[] args) {
23 Console.WriteLine("s.X = {0}", s.X);
25 Console.WriteLine("s.X = {0} ns.Value.X = {1}", s.X, ns.Value.X);
27 Console.WriteLine("s.X = {0} ns.Value.X = {1}", s.X, ns.Value.X);
29 Console.WriteLine("s.X = {0} ns.Value.X = {1}", s.X, ns.Value.X);