views:

7

answers:

0

Hi all,

I have method as follows:

        private DataTable MergeTables(DataTable dt1, 
                                            DataTable dt2, 
                                            DataTable dt3,
                                            string DateColumn1, 
                                            string DateColumn2, 
                                            string DateColumn3,
                                            string DateColumnCombined)
        {

.....

return dt
}

To me, the signatures of this method is ugly. Is there any way I could pass in an collection object containing all the datatables and corresponding datecolumns... so my final signature would be

        private DataTable MergeTables(somecollectiontype CollectionObject,string DateColumnCombined)
{
.....
return dt;
}

If so, how do I create collection object in VS2003?

Thanks

related questions