Get the type of Enum

D

Duggi

Hi

I need to pass the type of Enum as System.Type to a method. Any idea
how to do that?

Something like below code I was looking for

DataSet ds = new DataSet();
DataTable dt = new DataTable("MyTable");
dt.Columns.Add("CheckBoxColumn",
Type.GetType(System.Windows.Forms.CheckState));

Help would be appreciated.

-Cnu
 

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

Top