How can I bind a handler to a static event without invoking the static constructor?
How can I bind a handler to a static event without invoking the static constructor? I fear I know the answer to this but... Is it possible to successfully bind to a static event that will raise during a static constructor? Or is this logically impossible? My event handler is not being hit. I suspect it's because when I do this... MyClass.MyEvent += MyEventHandler; ...the call to MyClass is running the static contructor, so the event inside that constructor has already been raised by the time the handler is bound, later in that line of code. MyClass Is that correct? Is there another way to do this? Is it at all possible to bind to a static event without causing the static constructor to execute? ..the event inside that constructor..? could you show your class definition or better, convert this into a minimal, complete example we could run? – dlatikay 2 days ago ...