I am getting this error:
"Condition.Equals': Interfaces cannot declare types".
How do I do this correctly?
public interface Condition<Expected> {
public bool verify(Expected expected, object actual);
public class Equals : Condition<object> {
public bool verify(object expected, object actual) {
return expected==actual || (expected!=null && expected.Equals(actual));
}
}