I have a list of string like this :
public List<string> Subs { get; set; }
and I have a list<Category> Cat { get; set; } of this class :
public class Category
{
public int ID { get; set; }
public string Name { get; set; }
public int SubCat_ID { get; set; }
}
I just need to put all of the values in the list<string> Subs into the List<Category> Cat. and of course each string in the list<string> should be placed in each Name parameter of List<Category>.
So how is it done ? Is there any convert method which does the thing? how does it work ?
Thanks in advance ;)