Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Data;
- using System.Diagnostics;
- namespace tmpDataSet
- {
- public enum testenum
- {
- val0=0,
- val1=1
- }
- public static class dataclass
- {
- static DataSet dsTest = new DataSet();
- public static void Test()
- {
- dsTest.Tables.Add("Test");
- dsTest.Tables["Test"].Columns.Add("Text", typeof(string));
- dsTest.Tables["Test"].Columns.Add("Enum", typeof(testenum));
- dsTest.Tables["Test"].Columns.Add("Enum2", typeof(ProcessWindowStyle));
- dsTest.Tables["Test"].Rows.Add("Test Row0", testenum.val0, ProcessWindowStyle.Hidden);
- //...
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement