public static void CallMethodViaField() { ValueTypes.ReadOnlyS.SetField(); ValueTypes.MutableS.SetField(); ValueTypes.S mutableS = ValueTypes.MutableS; mutableS.SetField(); }
public static ValueTypes.S OnlyChangeTheCopy(ValueTypes.S p) { ValueTypes.S s = p; s.SetField(); return(p); }