my problem is:
In every loop i get 3 values (logic to get strings) and store it into customer. With the following code I am getting only my 5th loop values in my final customer list.
List
for (int i = 0; i < 5; i++ )
{
customer= logic to get values (here I get 3 strings)
}
Thanks allot
Darma
{
customer= logic to get values (here I get 3 strings)
}
Thanks allot
Darma

Javeed M ShaikhRank #839 · 2.7K reputationPosted May 3, 2013, 6:48 AM EDT
customer.Add(logic to get values);
darma tejaRank #3,199 · 449 reputationPosted May 3, 2013, 7:30 AM EDT
Thanks allot for the reply.
Actually logic to get values is also a list, so that we can not use customer.Add(logic to get values)
I did it like this and It works fine now:
Darma
darma tejaRank #3,199 · 449 reputationPosted May 3, 2013, 7:32 AM EDT
Is there any short way to do this?
Thanks,
Darma