public IDomainGenerator With(Action <IgnoreGeneratorOptions> customization) { if (!ignoreGeneratorOptions.ContainsKey(typeof(object))) { ignoreGeneratorOptions[typeof(object)] = new IgnoreGeneratorOptions(); } customization((IgnoreGeneratorOptions)ignoreGeneratorOptions[typeof(object)]); return(this); }
public IDomainGenerator With <T>(Action <IgnoreGeneratorOptions <T> > customization) { if (!ignoreGeneratorOptions.ContainsKey(typeof(T))) { ignoreGeneratorOptions[typeof(T)] = new IgnoreGeneratorOptions <T>(); } customization((IgnoreGeneratorOptions <T>)ignoreGeneratorOptions[typeof(T)]); return(this); }