Good morning, afternoon or night to all,
I have developed a small library of generics whose two classes, ReadOnlyDictionary<TKey, TValue> and InvertibleReadOnlyDictionary<TKey, TValue>, are wrappers around an also generic dictionary. Now, being developing another library, I would like to define a new, non-generic class, called for example DigitMapping, of type InvertibleReadOnlyDictionary<char, int>. At first I thought about using inheritance and define it simply as DigitMapping : InvertibleReadOnlyDictionary<char, int> with a custom constructor. The problem is that I marked this last class as sealed and I don't want to mark it as not being sealed. I also don't want to do another wrapper around this class for performance reasons. Do you have any ideia as to how can I accomplish this?
Of course, I want this alias to be public, not just use it like that in my code (which would be easy with the 'using' keyword).
Thank you very much.