Click here to Skip to main content
15,910,603 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reflection Question Pin
Paw Jershauge11-Mar-08 5:27
Paw Jershauge11-Mar-08 5:27 
GeneralRe: Reflection Question Pin
led mike11-Mar-08 5:34
led mike11-Mar-08 5:34 
GeneralRe: Reflection Question Pin
Martin#11-Mar-08 5:39
Martin#11-Mar-08 5:39 
GeneralRe: Reflection Question Pin
led mike11-Mar-08 5:44
led mike11-Mar-08 5:44 
QuestionRe: Reflection Question [modified] Pin
Paw Jershauge11-Mar-08 5:20
Paw Jershauge11-Mar-08 5:20 
GeneralRe: Reflection Question Pin
led mike11-Mar-08 5:31
led mike11-Mar-08 5:31 
GeneralRe: Reflection Question Pin
Paw Jershauge11-Mar-08 5:48
Paw Jershauge11-Mar-08 5:48 
GeneralRe: Reflection Question Pin
Paw Jershauge11-Mar-08 6:17
Paw Jershauge11-Mar-08 6:17 
As this was really troubling me. i found the solution from an guy called boothwine on the MSDN forum.

I seems that one would have to do following:

EventInfo[] AllEvents = type.GetEvents();<br />
foreach(EventInfo ei in AllEvents)<br />
{<br />
	string modifier = "";<br />
	if(ei.GetAddMethod(true).IsPrivate)<br />
		modifier = "Private"<br />
	else<br />
		....<br />
	string eventfullname = modifier + " " + ei.Name;<br />
}


The GetAddMethod returns an MethodInfo this helps...

Thanks for taking the time to try an help me...
Wink | ;)
GeneralPlease help me convert the C# code to VB.Net Pin
Support12311-Mar-08 3:55
Support12311-Mar-08 3:55 
AnswerRe: Please help me convert the C# code to VB.Net Pin
Paw Jershauge11-Mar-08 4:02
Paw Jershauge11-Mar-08 4:02 
GeneralRe: Please help me convert the C# code to VB.Net Pin
Support12311-Mar-08 4:08
Support12311-Mar-08 4:08 
GeneralRe: Please help me convert the C# code to VB.Net Pin
Paw Jershauge11-Mar-08 4:22
Paw Jershauge11-Mar-08 4:22 
GeneralRe: Please help me convert the C# code to VB.Net Pin
ChrisKo11-Mar-08 8:09
ChrisKo11-Mar-08 8:09 
GeneralWindows Application Security using SQL 2005 Pin
Illegal Operation11-Mar-08 2:47
Illegal Operation11-Mar-08 2:47 
GeneralRe: Windows Application Security using SQL 2005 Pin
led mike11-Mar-08 4:44
led mike11-Mar-08 4:44 
QuestionGetFiles() Problem Pin
climbah11-Mar-08 2:44
climbah11-Mar-08 2:44 
GeneralRe: GetFiles() Problem Pin
FerencTheFifth11-Mar-08 2:58
FerencTheFifth11-Mar-08 2:58 
GeneralRe: GetFiles() Problem Pin
Luc Pattyn11-Mar-08 3:39
sitebuilderLuc Pattyn11-Mar-08 3:39 
GeneralRe: GetFiles() Problem Pin
climbah11-Mar-08 22:07
climbah11-Mar-08 22:07 
GeneralEnterprise Library and C#... Pin
Illegal Operation11-Mar-08 0:21
Illegal Operation11-Mar-08 0:21 
GeneralRe: Enterprise Library and C#... Pin
led mike11-Mar-08 4:41
led mike11-Mar-08 4:41 
Generalpixel C# Pin
Jeeva Jose10-Mar-08 23:44
Jeeva Jose10-Mar-08 23:44 
GeneralRe: pixel C# Pin
Bekjong10-Mar-08 23:50
Bekjong10-Mar-08 23:50 
GeneralRe: pixel C# Pin
Jeeva Jose11-Mar-08 0:00
Jeeva Jose11-Mar-08 0:00 
GeneralRe: pixel C# Pin
Bekjong11-Mar-08 0:03
Bekjong11-Mar-08 0:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.