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)); }
public static SettingsBuilder CreateBuilder() { var factory = new SettingsBuilderFactory(); return(new SettingsBuilder(factory.Options, factory.Binders)); }