Click here to Skip to main content
15,913,486 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading the memory of a process Pin
Wjousts17-Aug-04 7:46
Wjousts17-Aug-04 7:46 
GeneralRe: Reading the memory of a process Pin
Roman Rodov16-Aug-04 14:40
Roman Rodov16-Aug-04 14:40 
GeneralRe: Reading the memory of a process Pin
Wjousts17-Aug-04 8:00
Wjousts17-Aug-04 8:00 
Generalsetting Printer Dpi Pin
htafc16-Aug-04 5:25
htafc16-Aug-04 5:25 
Generala reflection question... Pin
LongRange.Shooter16-Aug-04 5:20
LongRange.Shooter16-Aug-04 5:20 
GeneralRe: a reflection question... Pin
Nick Parker16-Aug-04 5:43
protectorNick Parker16-Aug-04 5:43 
GeneralRe: a reflection question... Pin
LongRange.Shooter16-Aug-04 6:45
LongRange.Shooter16-Aug-04 6:45 
GeneralRe: a reflection question... Pin
Nick Parker16-Aug-04 10:11
protectorNick Parker16-Aug-04 10:11 
theRealCondor wrote:
Well, I tried this and it did not work either.

Yes, it does, I have a running example. You need to determine what the accessor is, and since you MethodInfo object inherits from MethodBase you can pass each instance to a function that would perform some check like the following (just an example):

	private string GetAccessor(MethodBase mb)
	{
		string a = string.Empty;

		if(mb.IsPrivate)
			a = a.Length > 0 ? a += " private" : a = "private";
		if(mb.IsPublic)
			a = a.Length > 0 ? a += " public" : a = "public";
		if(mb.IsAbstract)
			a = a.Length > 0 ? a += " abstract" : a = "abstract";
		if(mb.IsVirtual)
			a = a.Length > 0 ? a += " virtual" : a = "static";
		if(mb.IsStatic)
			a = a.Length > 0 ? a += " static" : a = "static";
		if(mb.IsFamily)
			a = a.Length > 0 ? a += " protected" : a = "protected";
			
		return a;
	}


- Nick Parker
My Blog | My Articles

GeneralRe: a reflection question... Pin
LongRange.Shooter17-Aug-04 3:18
LongRange.Shooter17-Aug-04 3:18 
GeneralRe: a reflection question... Pin
Heath Stewart18-Aug-04 11:17
protectorHeath Stewart18-Aug-04 11:17 
GeneralRe: a reflection question... Pin
leppie17-Aug-04 2:26
leppie17-Aug-04 2:26 
GeneralRe: a reflection question... Pin
LongRange.Shooter17-Aug-04 3:28
LongRange.Shooter17-Aug-04 3:28 
GeneralRe: a reflection question... Pin
leppie17-Aug-04 5:43
leppie17-Aug-04 5:43 
GeneralRe: a reflection question... Pin
LongRange.Shooter17-Aug-04 6:45
LongRange.Shooter17-Aug-04 6:45 
GeneralRe: a reflection question... Pin
leppie17-Aug-04 8:09
leppie17-Aug-04 8:09 
GeneralRe: a reflection question... Pin
Anonymous17-Aug-04 8:18
Anonymous17-Aug-04 8:18 
Generaldetailed attributes of jpeg Pin
steven shingler16-Aug-04 2:59
steven shingler16-Aug-04 2:59 
GeneralRe: detailed attributes of jpeg Pin
Nick Parker16-Aug-04 3:52
protectorNick Parker16-Aug-04 3:52 
GeneralRe: detailed attributes of jpeg Pin
Arjan Einbu16-Aug-04 3:58
Arjan Einbu16-Aug-04 3:58 
GeneralRe: detailed attributes of jpeg Pin
steven shingler16-Aug-04 10:46
steven shingler16-Aug-04 10:46 
GeneralDesigner - TreeCollection of items which have themselves a collection like treenodecollection causes error when adding items Pin
STW16-Aug-04 1:39
STW16-Aug-04 1:39 
GeneralRe: Designer - TreeCollection of items which have themselves a collection like treenodecollection causes error when adding items Pin
Stanciu Vlad16-Aug-04 3:11
Stanciu Vlad16-Aug-04 3:11 
GeneralRe: Designer - TreeCollection of items which have themselves a collection like treenodecollection causes error when adding items Pin
STW16-Aug-04 3:29
STW16-Aug-04 3:29 
GeneralSecurity exception while trying to wrtite Event Log Pin
Alex Getman15-Aug-04 22:44
Alex Getman15-Aug-04 22:44 
GeneralRe: Security exception while trying to wrtite Event Log Pin
leppie15-Aug-04 23:21
leppie15-Aug-04 23:21 

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.