binding list variable one after another
Posted
by prince23
on Stack Overflow
See other posts from Stack Overflow
or by prince23
Published on 2010-05-13T10:47:12Z
Indexed on
2010/05/13
10:54 UTC
Read the original article
Hit count: 138
hi, this is my class
public class Users
{
public string Name { get; set; }
public int Age { get; set; }
public string Gender { get; set; }
public string Country { get; set; }
}
i am defing an list variable
List<Users> myList = new List<Users>
i have four functions each one returing a string array
{of data content like, names, age, gender, country}
**functions names**
FunNames();
FunAge();
Fungender();
Funcountry();
now i need to bind these these return values of all these functions into list one by one like.
myList =FunNames();
myList =FunAge();
myList Fungender();
.....
hope my Question is clear. any help would be great thank you.
© Stack Overflow or respective owner