Some functions only accept arrays as arguments but you want to assign a single object to them. For example to assign a primary key column for a DataTable I do this:
DataColumn[] time = new DataColumn[1];
time[0] = timeslots.Columns["time"];
timeslots.PrimaryKey = time;
This seems cumbersome, so basically I only need to convert a DataColumn to a DataColumn[1] array. Is there any easier way to do that ?
 
     
     
     
     
     
    