EDIT: This is not a duplicate of this question as this one is a practical example working with Delegate.CreateDelegate and the other one is a theoretical discussion about IL. Nothing to do one with each other besides the words this and null.
Relative to this question ...
I have a situation when an event handler is called on an instance that is null. Weird. Look at the image:
I do not understand what is happening. How an instance method can be called on a null instance???
You can create this case using the Delegate.CreateDelegate overload where you provide a
null
reference for the target of invocation.From the MSDN remarks on that page:
So it's documented as a known, and probably intended, behaviour.