Refering to a type staticly

  • Thread starter Thread starter Dave Rudolf
  • Start date Start date
D

Dave Rudolf

Hi all,

I am curious if there is a way to refer to a class type without having to
create an instance of a type, and to GetType() on it. For instance, in Java,
I could do something like

Class classType = String.class;

I assume that there is something similar in C#?

Thanks,

Dave.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top