I'm currently in the process of creating a class that has general methods that specialised methods of the class call. One of these general methods needs to get a method as parameter to use it to start a new thread.
My question is how this parameter must be done (thus what I must replace with, or what do I need to change in total to make it work as intended):
Class mytest
{
public void myPublicStarter()
{
Starter("Test", this.DoWork);
}
public void DoWork(object myIDString)
{
}
private void Starter(string myIDString, <METHOD> paramethod)
{
Thread myThread = new Thread(paramethod);
myThread.Start(myIDString);
}
}