Beispiel #1
0
        public static string ParseAndFormat <TResult>(this object obj, ParserEx.IObjectParser <TResult> parser, FormatterEx.IValueFormatter <TResult> formatter, Nparams param)
        {
            var value = parser.Parse(obj, default(TResult), param);

            return(value != null ? formatter.Format(value, param) : string.Empty);
        }
Beispiel #2
0
 public static TResult Parse <TResult>(this object obj, ParserEx.IObjectParser <TResult> parser, TResult defaultValue, Nparams param)
 {
     return(parser.Parse(obj, defaultValue, param));
 }