data-containers

C#: What style of data containers are preferred in general?

When creating a simple data container class, what should it be? Class or struct? Mutable or immutable? With or without non-empty constructor? Examples of the above: struct MutableStruct { public string Text { get; set; } public int Number { get; set; } } struct ImmutableStruct { public string Text { get; private set; } ...

.NET container for two-way conversion data?

Hi all, I have conversion tables I need to contain in memory for fast access. Until now I used a simple Hashtable were the Key was the internal code, and the Value was an object holding the external code and other meta-data. Now we need to have a reverse look-up, meaning to get the internal code based on the external code. I could only...