コード例 #1
0
 /// <summary>
 ///     Specifies code generator for member
 /// </summary>
 public static ClassExportBuilder WithCodeGenerator <T>(this ClassExportBuilder conf)
     where T : ITsCodeGenerator <Type>
 {
     conf.Attr.CodeGeneratorType = typeof(T);
     return(conf);
 }
コード例 #2
0
 public static ClassExportBuilder WithCodeGenerator <T>(this ClassExportBuilder conf, T codeGeneratorInstance)
     where T : ITsCodeGenerator <Type>
 {
     conf.Attr.CodeGeneratorInstance = codeGeneratorInstance;
     return(conf);
 }