I have a structure which contains an int value as key and a group of datetime as value.
My question is how to represent such a structure in C#?
I tried Dictionary<int, DateTime[]> but I can't work with the dictionary while adding and removing datetime elements, since the dictionary always requires a different array for each key, which is not practical to be programmed in my application.