darma teja

darma teja

  • NA
  • 496
  • 329.3k

add values to list in a loop

May 3 2013 10:42 AM
Hi,

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<string> customer = new List<string>();

for (int i = 0; i < 5; i++ )
{
customer= logic to get values (here I get 3 strings)
}

Thanks allot

Darma

Answers (3)