R
raffelm
In the first class below, I get an error that
AnotherClientBaseDataRecord does not implement
IComparable.CompareTo(object)...yet the second class below is
implemented identicially and it does get the compile error. I'd love
help understanding this :=) ....
Why does this not compile
public class AnotherClientBaseDataRecord : IComparable
{
public AnotherClientBaseDataRecord() {}
public int CompareTo(AnotherClientBaseDataRecord otherRecord) {
return 0;}
}
public class BuildFileRecord : IComparable
{
public BuildFileRecord () {}
public int CompareTo(BuildFileRecord otherRecord) { return 0;}
}
AnotherClientBaseDataRecord does not implement
IComparable.CompareTo(object)...yet the second class below is
implemented identicially and it does get the compile error. I'd love
help understanding this :=) ....
Why does this not compile
public class AnotherClientBaseDataRecord : IComparable
{
public AnotherClientBaseDataRecord() {}
public int CompareTo(AnotherClientBaseDataRecord otherRecord) {
return 0;}
}
public class BuildFileRecord : IComparable
{
public BuildFileRecord () {}
public int CompareTo(BuildFileRecord otherRecord) { return 0;}
}