-
Notifications
You must be signed in to change notification settings - Fork 351
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
2022-05-02 comparers #2401
base: release-7.x
Are you sure you want to change the base?
2022-05-02 comparers #2401
Conversation
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
@corranrogue9 @mikepizzo That's cool to post it. But, do you think odata.net is the right place to have such posts? |
@@ -0,0 +1,149 @@ | |||
Today's topic is about the standard implementations for the different ways to compare instances of a type. There are 7 interfaces in .NET that are used for this: `IEqualityComparer`, `IEqualityComparer<T>`, `IComparer`, `IComparer<T>`, `Comparable`, `IComparable<T>`, and `IEquatable<T>`. Notice the missing, non-generic IEquatable variant. This is because `object` already has those methods that can be overridden by any derived type. Let's now look at the standard implementations: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we have a title?
and maybe change 'Today's topic' as "This post' or "This doc" ...
|
||
1. `IEqualityComparer` | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this post is not specific to this repo, maybe it would make sense to have a dedicated repo for such docs? Or blog posts? |
@@ -0,0 +1,149 @@ | |||
Today's topic is about the standard implementations for the different ways to compare instances of a type. There are 7 interfaces in .NET that are used for this: `IEqualityComparer`, `IEqualityComparer<T>`, `IComparer`, `IComparer<T>`, `Comparable`, `IComparable<T>`, and `IEquatable<T>`. Notice the missing, non-generic IEquatable variant. This is because `object` already has those methods that can be overridden by any derived type. Let's now look at the standard implementations: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the date necessary to have in the filename. Should this be regarded as blog post series or time-agnostic docs?
The Maintainability Monday post for 2022-05-02 about comparers