I have this interface defined:
public interface IOwlAnnotation2<T1, T2, T3>
{
T1 OwlAnnotation { get; set; }
T2 OwlClass { get; set; }
T3 AnnotationValue { get; set; }
}
Now I want to derive a class for it… so I write:
public class OwlAnnotation2 : IOwlAnnotation2<T1, T2, T3>
but I get errors of Cannot resolve symbol on T1,2,3 …What is the correct way of deriving form that interface?
You have to specify type parameters in the implementing class. You can either keep them generic:
or make them concrete: