tags:

views:

87

answers:

2

Hi, how can i get the type of of an object (with GetType) from within the object itself?

Something like GetType(Me) (that, of course, doesn't work).

Thanks.

+5  A: 

Me.GetType() should work. If it doesn't, then please say in what way it doesn't.

John Saunders
+1  A: 

Are you thinking of typeof(Me) ?

Jeff Fritz