You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the CompareTo() method for IVersionInfo accepts an object, which then has to be checked against to make sure the typing matches for the interface implementation. I think we can use a generic to enforce the typing, and use the language to enforce comparing against the right type.
Something like this in IVersionInfo.cs might do it:
public int CompareTo(T obj) {
// perform comparisons here
}
The text was updated successfully, but these errors were encountered:
Right now, the
CompareTo()
method for IVersionInfo accepts an object, which then has to be checked against to make sure the typing matches for the interface implementation. I think we can use a generic to enforce the typing, and use the language to enforce comparing against the right type.Something like this in IVersionInfo.cs might do it:
The text was updated successfully, but these errors were encountered: