示例#1
0
 public IDomainGenerator With(Action <IgnoreGeneratorOptions> customization)
 {
     if (!ignoreGeneratorOptions.ContainsKey(typeof(object)))
     {
         ignoreGeneratorOptions[typeof(object)] = new IgnoreGeneratorOptions();
     }
     customization((IgnoreGeneratorOptions)ignoreGeneratorOptions[typeof(object)]);
     return(this);
 }
示例#2
0
 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);
 }