Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
 public override string ToString()
 {
     return($"{PointFormatter.Escape(Key)}={PointFormatter.Escape(Value)}");
 }