本文整理汇总了C#中IResourceManager.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# IResourceManager.GetList方法的具体用法?C# IResourceManager.GetList怎么用?C# IResourceManager.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IResourceManager
的用法示例。
在下文中一共展示了IResourceManager.GetList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AppConfig
public AppConfig(IResourceManager resources)
{
this.RootDirectory = resources.GetString("RootDirectory").MapHostAbsolutePath()
.Replace('\\', Path.DirectorySeparatorChar);
this.TextFileExtensions = resources.GetList("TextFileExtensions");
this.ExcludeDirectories = resources.GetList("ExcludeDirectories");
}
示例2: AppConfig
/// <summary>
/// Initializes a new instance of the <see cref="AppConfig"/> class.
/// </summary>
/// <param name="appSettings">
/// The app settings.
/// </param>
public AppConfig(IResourceManager appSettings)
{
this.AdminEmailAddresses = (from adminUserName in appSettings.GetList("AdminEmailAddresses")
select adminUserName.ToUpper().Trim()).ToList();
}