The text of this article is not in this database — only its details are. Read it on the old site: Runtime Type Information (Reflection) in C#.
1 Comment
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Runtime Type Information (Reflection) in C#.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
eliza sahooPosted Mar 29, 2010, 7:10 AM
A simple way to get the class structure information of the Class we are using in our application. Step1: Create the Class object of the class we want to explore at run time or the class which is getting added at runtime. Step2: As we are looking for the structure of the class, get all Constructors, Fields and methods by invoking respective functions of the Class. Step3: print them in java console or use them as required. Hope it answer the question.Any suggestions are welcomed.