I try to set a method as a parameter but I can't do it. I tried about ten solutions proposed on different topics but it didn't work that's why I create my own topic
public static void startThread(Method methodname (For exemple Class.test))
{
for (int i = 1; i <= Xenoris.threads; i++)
{
new Thread(new ThreadStart(methodname)).Start();
}
}
As you can see I try to do ThreadStart in a function but for that I need to have a method as a parameter which I can't do
To be more precise I want to make my own library and I need to be able to have methods as parameter like: Class.test
I hope someone can help me and I'm sorry for my bad English