コード例 #1
0
 public NamespacePropertyProvider(IEnumerable <KeyValuePair <string, IPropertyProvider> > elements)
 {
     _items = elements.GroupBy(l => l.Key, l => l.Value).ToDictionary(
         grouping => grouping.Key,
         grouping => PropertyProvider.Compose(grouping)
         );
 }
コード例 #2
0
        public static string Format(string format,
                                    IEnumerable <KeyValuePair <string, object> > propertyProviders)
        {
            if (string.IsNullOrEmpty(format))
            {
                return(string.Empty);
            }

            return(Format(format, PropertyProvider.Compose(propertyProviders)));
        }
コード例 #3
0
 public string Format(IEnumerable <KeyValuePair <string, object> > propertyProvider)
 {
     return(Format(PropertyProvider.Compose(propertyProvider)));
 }