Example #1
0
 public String Apply(NamedValueGetter valueGetter)
 {
     if (String.IsNullOrEmpty(format) || paramNames == null)
     {
         return(format);
     }
     return(String.Format(format, paramNames.Select(a => valueGetter(a)).ToArray()));
 }
Example #2
0
 public String Apply(NamedValueGetter valueGetter)
 {
     if (String.IsNullOrEmpty(format) || paramNames == null)
         return format;
     return String.Format(format, paramNames.Select(a => valueGetter(a)).ToArray());
 }
Example #3
0
 public static String Apply(String formatWithNames, NamedValueGetter valueGetter)
 {
     var tpl = new StringTemplate(formatWithNames);
     return tpl.Apply(valueGetter);
 }
Example #4
0
        public static String Apply(String formatWithNames, NamedValueGetter valueGetter)
        {
            var tpl = new StringTemplate(formatWithNames);

            return(tpl.Apply(valueGetter));
        }