I have an interface defined like this:
public interface IOwlAnnotationTuple<T1, T2, T3>
and then also its class like this:
public class OwlAnnotationTuple : IOwlAnnotationTuple<string, OWLClass, string>
Then I have anther interface that I am adding a method to it which I want it to take a parameter of this interface I defined above, so I defined it like this but I get error that “> is expected.”
void AddAnnotation(IOwlAnnotationTuple <string annotationName, OWLClass owlClass, string annotationValue>);
So what is the correct syntax of declaring it?
You’ve attempted to name three parameters, but if you only want a single one, only name the single one:
or
The type of
owlAnnotationTupleisIOwlAnnotationTuple<string, OWLClass, string>. There are no separate parameters of typesstring/OWLClass, so you don’t get to name those.