/* * * */ public static void Generate(ParameterGenerateDelegate generator, params object[] parameters) { if (generator != null) { generator(parameters); //注释 } }
//public static void Generate(CategoryListPageGenerateDelegate generator, Category category, int page) //{ // if (generator != null) generator(category, page); //} //public static string ReturnGenerate(CategoryListPageGenerateDelegate generator, Category category, int page) //{ // if (generator != null) return generator(category, page); // return "not found!"; //} public static string ReturnGenerate(ParameterGenerateDelegate generator, params object[] args) { if (generator != null) { return(generator(args)); } return("not found!"); }
//public static void Generate(CategoryListPageGenerateDelegate generator, Category category, int page) //{ // if (generator != null) generator(category, page); //} //public static string ReturnGenerate(CategoryListPageGenerateDelegate generator, Category category, int page) //{ // if (generator != null) return generator(category, page); // return "not found!"; //} public static string ReturnGenerate(ParameterGenerateDelegate generator, params object[] args) { if (generator != null) return generator(args); return "not found!"; }
/* * * */ public static void Generate(ParameterGenerateDelegate generator, params object[] parameters) { if (generator != null) generator(parameters); //注释 }