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(); }
public void Call(ref GenericValueType <T> v) { num++; Console.WriteLine("Call #{0}: {1} with v=#{2}", num, data, v.num); }