I am using a Dictionary to store data, and will be caching it. I would like to avoid server memory issues, and have good performance by limiting the size of the Dictionary&
There are several other classes you can select from like
you can review the options by looking at System.Collections.Generic Namespace.
Their is a very good post, describibg pros and cons for all most of the collection classes at MSDN
If you are not satisfied by what these classes are provide, you can go for your own collection class or design a custom Dictionary
your self.
you will need to inherit your custom dictionary fron IDictionary Interface and other classes / interfaces or may write all from scratch.
Here is the signature for Dictionary class at MSDN
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class Dictionary : IDictionary,
ICollection>,
IEnumerable>,
IDictionary, ICollection, IEnumerable,
ISerializable, IDeserializationCallback