Sunday, 15 September 2013

using array of array of list of lists? C# -



using array of array of list of lists? C# -

im not guy , trying programming in spare time , wondering how tackle next issue. must very simple can`t figure out, after dozen of read articles on stackoverflow.

i have series of values need set in list or array goes in array or list. this:

series one: "name","madman" "dateofbirth", 11/03/1990 //which datetime object. "hobby","chopping family members" series 2 "name","dad" "dateofbirth", 11/03/1965 //which datetime object. "hobby","biking" series 1 , 2 go in list this:

allseries: series one, series two

any ideas? much!

create class (possibly named person) has attributes name, dateofbirth, , hobby (this encapsulates data). set info through constructor or setter methods. store instances of person list, or array, or whatever take - called people. example: list<person> people = new list<person>();.

in original approach have had have declared storage info construction more generic type. nice bonus of approach know types of info stored in class.

arrays list dictionary

No comments:

Post a Comment