예제 #1
0
		public void Copy2 ()
		{
			PagedDataSource paged = new PagedDataSource ();
			paged.DataSource = null;
			object [] data = new object [100];
			paged.CopyTo (data, 0);
		}
예제 #2
0
		public void Copy3 ()
		{
			PagedDataSource paged = new PagedDataSource ();
			paged.DataSource = new object [] {"1", "2"};
			object [] data = new object [100];
			paged.CopyTo (data, 0);
		}
예제 #3
0
		public void Copy1 ()
		{
			PagedDataSource paged = new PagedDataSource ();
			DataTable table = new DataTable ();
			FillTable (table, 100);
			paged.DataSource = new DataView (table);
			object [] data = new object [100];
			paged.CopyTo (data, 0);
			Type t = typeof (DataRowView);
			Assert.AreEqual (t, data [0].GetType ());
		}