While my program is running it receives messages with Id’s and data in one message.
I want to make a new List for every Id where I can store the data from that Id.
The problem is that I don’t know how many Id’s I wil receive until my program is running. The only thing I know is that it’s a lot. So I don’t know if it is possible or how I should do this.
This is wat I’m basically trying to do:
if (!(idlist.Contains(id))){
idlist.Add(id);
List<string> id.ToString() = new List<string>();}
You can do something like:
Dictionaries are quite handy!
You can do something like this as well:
Hope this helps!