If a non-gui object constructor wires a local event handling method to the event field of an object on a different thread, is it possible for said event handling method to be called before the constructor is finished?
Example: (semantic pseudocode only)
public static B b = new B();
class A
{
public A()
{
b.evt += EventHandler();
Thread.Sleep(5000);
}
protected void EventHandler()
{
// Some stuff
}
}
class B
{
public event evt;
public void ThreadedLoop()
{
while (true)
{
RaiseEvt();
}
}
}