Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

test data set code

tolikpunkoff Nov 24th, 2018 85 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. using System.Data;
  2. using System.Diagnostics;
  3.  
  4. namespace tmpDataSet
  5. {
  6.     public enum testenum
  7.     {
  8.         val0=0,
  9.         val1=1
  10.     }
  11.     public static class dataclass
  12.     {
  13.         static DataSet dsTest = new DataSet();
  14.  
  15.         public static void Test()
  16.         {
  17.             dsTest.Tables.Add("Test");
  18.             dsTest.Tables["Test"].Columns.Add("Text", typeof(string));
  19.             dsTest.Tables["Test"].Columns.Add("Enum", typeof(testenum));
  20.             dsTest.Tables["Test"].Columns.Add("Enum2", typeof(ProcessWindowStyle));
  21.  
  22.             dsTest.Tables["Test"].Rows.Add("Test Row0", testenum.val0, ProcessWindowStyle.Hidden);
  23.  
  24.             //...
  25.         }
  26.        
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top