Beispiel #1
0
        public void ApplyDoubleFormat()
        {
            var formatter = new ObjectFormatter();

            formatter.AddFormatter((double d) => d.ToString("#####0.#"));
            Assert.Equal("10.5", formatter.Format(10.52345643));
        }
Beispiel #2
0
 public HtmlTable WithFormatter <T>(Func <T, string> func)
 {
     formatter.AddFormatter(func);
     return(this);
 }