public void Customize(Customizer <TBuilder> customizer) { if (customizer == null) { throw new ArgumentNullException(nameof(customizer)); } base.Customize(valueProvider => { var builderValueProvider = (BuilderValueProvider <T>)valueProvider; customizer.Invoke((TBuilder)builderValueProvider.Builder); }); }
public TSelf Customize(Customizer <TSelf> customizer = null) { customizer?.Invoke((TSelf)this); return((TSelf)this); }
protected override void ApplyCustomizer(TBuilder builder, Customizer <TBuilder> customizer) { customizer.Invoke(builder); }