示例#1
0
 /*
  *
  *
  */
 public static void Generate(ParameterGenerateDelegate generator, params object[] parameters)
 {
     if (generator != null)
     {
         generator(parameters);                           //注释
     }
 }
示例#2
0
        //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!");
        }
示例#3
0
        //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!";
        }
示例#4
0
 /*
  * 
  * 
  */
 public static void Generate(ParameterGenerateDelegate generator, params object[] parameters)
 {
     if (generator != null) generator(parameters);        //注释
 }