PreventEqualsMisusage 1.6.0

Prevents surprises by wrong Equals usage by:
- finding Union, Contains, GroupBy, Distinct, Except, Intersect without EqualityComparer.
- finding Equals on types that do not implement IEquatable.

Install-Package PreventEqualsMisusage -Version 1.6.0
dotnet add package PreventEqualsMisusage --version 1.6.0
<PackageReference Include="PreventEqualsMisusage" Version="1.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PreventEqualsMisusage --version 1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PreventEqualsMisusage, 1.6.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PreventEqualsMisusage as a Cake Addin
#addin nuget:?package=PreventEqualsMisusage&version=1.6.0

// Install PreventEqualsMisusage as a Cake Tool
#tool nuget:?package=PreventEqualsMisusage&version=1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

1.6
- finds Equals on ValueTypes

1.5
- finds Contains in method groups

1.4
- trial build

1.3.1, 1.3.2
- bug fix regarding HasSet

1.3.0
- ignores now Contains on string and HashSet

1.2.0
- added Contains and GroupBy

  • .NETStandard 1.3

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.6.0 4,254 7/15/2019
1.5.0 231 7/9/2019
1.4.0 254 7/9/2019
1.3.2 237 7/9/2019
1.3.1 232 7/9/2019
1.3.0 241 7/9/2019
1.2.0 232 7/8/2019
1.1.0 225 7/3/2019
1.0.0 224 7/3/2019