public static int CastStructToInterfaceAndWriteInBoxed(Coord2 arg) { INormalize tmp = arg; var y = (int)tmp.Norm(); return(arg.X + y); // arg.X should not change }
public static int WriteInStructUsingNorm(Coord2 arg) { var y = (int)arg.Norm(); return(arg.X + y); // arg.X should change }