What class are your methods on? You can get an array of the methods in your class like so:
MethodInfo[] methods = typeof(YourClassNameHere).GetMethods();
Then you can loop and invoke:
String baseName = "function";
foreach(var item in methods) {
//Check name
if (item.Name.SubString(0, baseName.Length) == baseName) {
item.Invoke(classInstanceOfYourClass,null);
}
}
classInstanceOfYourClass is an object instance of the class on which you are doing this. The second parameter of invoke, (I set it to null) is for passing arguments to the method. If you pass null, you are saying that the method has no arguments.