示例#1
0
        public static SettingsBuilder CreateBuilder(Action <ISettingsBuilderFactory> buildAction)
        {
            if (buildAction == null)
            {
                throw new ArgumentNullException(nameof(buildAction));
            }

            var factory = new SettingsBuilderFactory();

            buildAction(factory);

            return(new SettingsBuilder(factory.Options, factory.Binders));
        }
示例#2
0
        public static SettingsBuilder CreateBuilder()
        {
            var factory = new SettingsBuilderFactory();

            return(new SettingsBuilder(factory.Options, factory.Binders));
        }