public static void ProStr(string[] name, DelProStr del) { for (int i = 0; i < name.Length; i++) { name[i] = del(name[i]); } }
static void ProString(string[] str, DelProStr delegate1) { for (int i = 0; i < str.Length; i++) { str[i] = delegate1(str[i]); } }
static void ProString(string[] names, DelProStr del) { for (int i = 0; i < names.Length; i++) { names[i] = del(names[i]);//传入一个处理字符串的方式 } }
public static void ProStr(string[] names, DelProStr del) { for (int i = 0; i < names.Length; i++) { names[i] = del(names[i]); //names[i] = ProStrToLower(names[i]); } }
public static void ProString(string[] names, DelProStr del) { int i = 0; foreach (var item in names) { names[i] = del(item); i++; } }