المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : create enum at run time



C# Programming
03-31-2009, 01:40 PM
Dear All,
I have a DataTable which has 8 records and it will have more records at later too.
the data table has two fields (columns) which is "Id" and "Name". I would like to create enum based on "Name" field and the value of enum based on "Id" field.
Is it possible to create enums at run time using c#.