Program that uses object array with DataTable [C#]
using System;
using System.Data;
class Program
{
static void Main()
{
DataTable table = GetTable();
//
// We can instantiate a new object array and add it as a row.
//
object[] array = new object[4];
array[0] = 7;
array[1] = "Candy";
array[2] = "Yorkshire Terrier";
array[3] = DateTime.Now;
table.Rows.Add(array);
}
}
Tuesday, June 19, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment