コード例 #1
0
 public static IConfigurationBuilder AddCs(
     this IConfigurationBuilder builder,
     string filePath,
     Encoding fileEncoding = null,
     IEnumerable<string> preloadFiles = null)
 {
     var provider = new CsConfigurationProvider(filePath, fileEncoding, preloadFiles);
     return builder.Add(provider);
 }
コード例 #2
0
        public static IConfigurationBuilder AddCs(
            this IConfigurationBuilder builder,
            string filePath,
            Encoding fileEncoding             = null,
            IEnumerable <string> preloadFiles = null)
        {
            var provider = new CsConfigurationProvider(filePath, fileEncoding, preloadFiles);

            return(builder.Add(provider));
        }