Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update interfaces.md #42657

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Update interfaces.md #42657

merged 1 commit into from
Sep 19, 2024

Commits on Sep 18, 2024

  1. Update interfaces.md

    This commit makes it more clear the implementing class of the `IEquatable<T>` method must be of type `T ` in order to be able to determine if its equal to other instances of type `T`.
    
    Confusion might arise in certain case. For example, if we have a class of type `MyClass` that implements `IEquatable<MyOtherClass>`, then we can't use `IEquatable`'s method `Equals` to compare an instance of `MyClass` with another instance of `MyClass`
    Haidar0096 authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    ef93e33 View commit details
    Browse the repository at this point in the history