I'm using a string which contains multiple values inside: Example
string Response="John,13,1st,Mike,15,3st"...and so on This 3 values need to be insert each value in separate class object. Example
class Students { public string Name { get; set; } public string Age { get; set; } public string SchoolClass{ get; set; } } I need to use my list as example
Students mItems = new List<Students>(); mItems.Add(new Students() { Name = first string value,Age=second,SchoolClass=third....and so on Or if it is simpler using my string with key value method
Name:John,Age:13,SchoolClass:1st ..... and so on
public string Age { get; set; }typeintwould make more sense here