public override string ToString() { if (Value is float) { return(string.Format(Culture, "{0}={1}", PointFormatter.Escape(Key), Value)); } if (Value is int) { return(string.Format(Culture, "{0}={1}i", PointFormatter.Escape(Key), Value)); } if (Value is string) { return(string.Format(Culture, "{0}=\"{1}\"", PointFormatter.Escape(Key), PointFormatter.Escape(Value.ToString()))); } return(string.Format(Culture, "{0}={1}", PointFormatter.Escape(Key), (bool)Value ? "t" : "f")); }
public override string ToString() { return($"{PointFormatter.Escape(Key)}={PointFormatter.Escape(Value)}"); }