Vipul Kelkar

Vipul Kelkar

  • NA
  • 1.9k
  • 568.3k

GetTypes in reflection

May 12 2010 3:28 AM

Hi friends
I have started a console application and i have written the code in the Main..Firstly i have taken the Executing assembly
Assembly a = Assembly.GetExecutingAssembly();
I have written two more classes A,B in the default namespace(Consoleapplication1) that is created.
When i use the GetTypes() for the assembly "a" that i have created as above It shows me the classes program,A and B...but if i declare an "Int temp" in class A it does not show that...Even i tried it with GetNestedTypes.....is it that the GetTypes does not return value types...

Answers (1)