Shared worker thread [VS 2013]
Ok, so I have a class with a shared method, Worker(), that runs in the background. It creates instances of itself in the process.
If I inherit this class, I want for the worker method to create instances of the inherited class, not the base class. I thought I'd try using a shared Factory() function to return the correct instance, but shared methods can't be overridden, only shadowed. So calling Factory() from the worker thread always returns the base instance, not the inherited one.
EDIT: Think I found a solution. I have to pass a delegate to the correct Factory() method when starting the worker thread, then invoke it.