Example #1
0
        public static void Main()
        {
            MutValueType m = new MutValueType();

            RefParameter(ref m);
            ValueParameter(m);
            Field();
            Box();
            var gvt = new GenericValueType <string>("Test");

            gvt.Call(ref gvt);
            new Program().InstanceFieldTests();
        }
Example #2
0
 public void Call(ref GenericValueType <T> v)
 {
     num++;
     Console.WriteLine("Call #{0}: {1} with v=#{2}", num, data, v.num);
 }