this is something really simple Im sure, but Im struggling to get my head around the inheritance malarky when it comes to interfacing.
Given the following classes, how do I interface the Get method in an interface specific to class Parent, without overriding the base method?
public class Base<T, T2>
{
public T Get<T, T2>(string key)
{
...
}
}
public class Parent : Base<Type1, Type2>, IParent
{
...
}
Here's what I have atm, but I keep getting a "inteface member Type1 IParent.Get(string) is not implemented" error.
public interface IParent
{
Type1 Get(string key);
}
Get<T,T2>in the method if they are already declared in the class.