Bind Static data to Add method from other method

mahesh213
 
on Jul 31, 2021 12:11 AM
500 Views

Hi,

I have one delegate method 

public delegate void EventHanler(object sender, EventManagerArgs e);

 

public class EventManagerArgs : EventArgs
{
    public static readonly EventManagerArgs Empty;
    public EventManagerArgs(object obj = null) { }
    public string Name1 { get; set; }

}

 

public void Add(string name, EventHanler args)
{

}

right now my requirement is that i need to get some static data to Add method from other method

can you please help me how to get

i am totally getting confusion regrading this 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Results 1 - 5 of 7
dharmendr
 
on Jul 31, 2021 12:11 AM

I will get back to you soon.

mahesh213
 
on Jul 31, 2021 01:06 AM

I need to pass static data to Add method from other method i.e raise an event from other method to pass data to Add method 

dharmendr
 
on Jul 31, 2021 08:09 AM

I will get back to you on monday.

mahesh213
 
on Aug 01, 2021 10:47 PM

Thanks

 this below method exists on different class

public void Add(string name, EventHanler args)
{
 
}

i want to call above method from one more different class method

 

dharmendr
 
on Aug 02, 2021 05:16 AM
mahesh213 says:
i want to call above method from one more different class method

 Please explain in more details with example.

Results 1 - 5 of 7