binding list variable one after another
- by prince23
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.