B
Brian P
I want to expose a property of Dictionary<string, MyAbstractClass>.
I tried to do it this way:
private Dictionary<string, MyChildClass> _dictionary;
public Dictionary<string, MyAbstractClass>
{
get { return _dictionary; } //error: no implicit conversion.
}
How can I have a privay dictionay that uses an inheritied class, but
expose that dictionary as the base type?
--Brian
I tried to do it this way:
private Dictionary<string, MyChildClass> _dictionary;
public Dictionary<string, MyAbstractClass>
{
get { return _dictionary; } //error: no implicit conversion.
}
How can I have a privay dictionay that uses an inheritied class, but
expose that dictionary as the base type?
--Brian