Socarsky
Well-known member
- Joined
- Mar 3, 2014
- Messages
- 59
- Programming Experience
- Beginner
I am in a difficulty to convert a List that is class object which populated from database, so far so good to have that list of object but I need its string[,] (2D) array as converted to apply a method which helps to get an print output.
C#:
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
lCT = CTKayitlarDonsunBakalim(dateTimePicker1.Value);
// ==> here i need a method which copies/clones List<object>
}
private List<Maintable.QueryCT_Qty> CTKayitlarDonsunBakalim(DateTime d)
{
List<Maintable.QueryCT_Qty> lSwap = new List<Maintable.QueryCT_Qty>();
DateTime PickedDateTime = d.Date;
DataAccess da = new DataAccess();
lSwap = da.CheckCTRecords(PickedDateTime);
return lSwap;
}