Can I create an array of memorystreams of flexible size?
Can I create an array of memorystreams of flexible size?
Yes and no. Ask yourself if you need the indices into the collection to remain constant when elements are inserted or removed. If you do, you should use a Dictionary<int, MemoryStream>. If you don't, you should use a List<MemoryStream>. The difference is that you can call List.ToArray() to convert the List into a fixed array of MemoryStreams, while you have to code up something to do that for the Dictionary.
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein