If I have the following code:
MyClass pClass = new MyClass(); pClass.MyEvent += MyFunction; pClass = null;
Will pClass be garbage collected
Yes, pClass will be garbage collected. The event subscription does not imply that any reference exists to pClass.
An so no, you will not have to detach the handler in order for pClass to be garbage collected.