It comes in handy of course that you can dynamically adjust the size of a List or Dictionary.
But this time I want to use a Dictionary with sizes from 1 to 8.
When I have e.g. size 3, it will stay that way.
On the net I found a solution to use a wrapper class around a Dictionary, which could do the job.
Should I resort to an array instead, or are there still other options?
ddanbe 2,724 Professional Procrastinator Featured Poster
Recommended Answers
Jump to Post— deceptikon 1,790Why exactly do you need this? Unless you're writing a library (in which case a wrapper is the appropriate solution), it's more a matter of careful coding and checking invariants where necessary.
All 4 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.