| | |
| | | /// </summary> |
| | | /// <param name="sections">节点配置</param> |
| | | /// <returns></returns> |
| | | public static string app(params string[] sections) |
| | | public static string Get(params string[] sections) |
| | | { |
| | | try |
| | | { |
| | | |
| | | if (sections.Any()) |
| | | { |
| | | return Configuration[string.Join(":", sections)]; |
| | |
| | | /// <typeparam name="T"></typeparam> |
| | | /// <param name="sections"></param> |
| | | /// <returns></returns> |
| | | public static List<T> app<T>(params string[] sections) |
| | | public static List<T> Get<T>(params string[] sections) |
| | | { |
| | | List<T> list = new List<T>(); |
| | | // 引用 Microsoft.Extensions.Configuration.Binder 包 |