I have a generic class in java defined as:
public static class KeyCountMap { private Map map = new LinkedHashMap
Maybe this is what you want?
public class KeyCountMap where T : new() { private Dictionary map = new Dictionary(); // ... rest of properties... public KeyCountMap() { } public KeyCountMap(T obj) { obj = new T(); map = (Dictionary)(object)obj; } }