示例#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()));
 }
示例#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());
 }
示例#3
0
 public static String Apply(String formatWithNames, NamedValueGetter valueGetter)
 {
     var tpl = new StringTemplate(formatWithNames);
     return tpl.Apply(valueGetter);
 }
示例#4
0
        public static String Apply(String formatWithNames, NamedValueGetter valueGetter)
        {
            var tpl = new StringTemplate(formatWithNames);

            return(tpl.Apply(valueGetter));
        }