I have a (hopefully) simple question:
I have some classes:
class Foo
class Foo1 : Foo
class Foo2 : Foo
I have two dictionaries:
Dictionary<int, Foo1> dic1
Dictionary<int, Foo2> dic2
And I have a method:
private static int Method(Dictionary<int, Foo>)
and a method call:
Method(dic1);
but now I get the error that I can't convert Dictionary<int, Foo1> to Dictionary<int, Foo>.
How do I solve this problem?
Thank you :)