Get the type of Enum

  • Thread starter Thread starter Duggi
  • Start date Start date
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
 
Back
Top