Class ConfigurationObjectLoaderExt
Extension class for loading IConfigurator<T>(s) from a IConfigurationSection.
public static class ConfigurationObjectLoaderExt
- Inheritance
-
ConfigurationObjectLoaderExt
- Inherited Members
Methods
LoadConfigurationObjects<T>(IConfiguration, bool)
Returns an enumeration of ConfigurationObjectLoaderExt.CfgObject<T>(s) with Object instances loaded from a IConfiguration.
public static IEnumerable<ConfigurationObjectLoaderExt.CfgObject<T>> LoadConfigurationObjects<T>(this IConfiguration cfg, bool excludeObjDesc = false) where T : class
Parameters
cfg
IConfigurationexcludeObjDesc
bool
Returns
Type Parameters
T
LoadObject<T>(IConfiguration)
Returns an enumeration of ConfigurationObjectLoaderExt.CfgObject<T>(s) with Object instances loaded from a IConfiguration.
[Obsolete("Use LoadConfigurationObjects<T>()", false)]
public static IEnumerable<ConfigurationObjectLoaderExt.CfgObject<T>> LoadObject<T>(this IConfiguration cfg) where T : class
Parameters
cfg
IConfiguration
Returns
Type Parameters
T