public NamespacePropertyProvider(IEnumerable <KeyValuePair <string, IPropertyProvider> > elements) { _items = elements.GroupBy(l => l.Key, l => l.Value).ToDictionary( grouping => grouping.Key, grouping => PropertyProvider.Compose(grouping) ); }
public static string Format(string format, IEnumerable <KeyValuePair <string, object> > propertyProviders) { if (string.IsNullOrEmpty(format)) { return(string.Empty); } return(Format(format, PropertyProvider.Compose(propertyProviders))); }
public string Format(IEnumerable <KeyValuePair <string, object> > propertyProvider) { return(Format(PropertyProvider.Compose(propertyProvider))); }