/// <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); }
public static ClassExportBuilder WithCodeGenerator <T>(this ClassExportBuilder conf, T codeGeneratorInstance) where T : ITsCodeGenerator <Type> { conf.Attr.CodeGeneratorInstance = codeGeneratorInstance; return(conf); }