private string wrapToString() { if (WrapX == WrapY) { return(WrapX.ToString()); } return($"{WrapX},{WrapY}"); }
public static void Main() { var r = new Receiver(); var s = new WrapSender(); s.Run(r); // gets message from wrapped class s.SendM(r, "message via M"); var x = new WrapX(); x.Run(r); // gets message from wrapped class x.SendN(r, "message via N"); s.SendN(r, "does not compile nor in intellisense"); }
result = new MapCoordinate(WrapX(result.X), WrapY(result.Y));