/// <summary> /// Specifies code generator for member /// </summary> public static InterfaceExportBuilder WithCodeGenerator <T>(this InterfaceExportBuilder conf) where T : ITsCodeGenerator <Type> { conf.Attr.CodeGeneratorType = typeof(T); return(conf); }
/// <summary> /// Specifies code generator for member /// </summary> public static InterfaceExportBuilder WithCodeGenerator <T>(this InterfaceExportBuilder conf, T codeGeneratorInstance) where T : ITsCodeGenerator <Type> { conf.Attr.CodeGeneratorInstance = codeGeneratorInstance; return(conf); }