How to raise events from a nested class?

A

AA

Hello, somebody know how to raise an event from a nested class??

This is my situation... I have two classes, the class1 with 2 events, and a
nested class (class2) inside the class1. So... How can I raise class1 events
from the class2?

Thanks a lot!!
 
R

raghavendra

Hi,

try to use delegates..

public delegate void delegatecall();
private event delegatecall pointer;
pointer += new delegatecall(cmdEventName);

Raghavendra...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top