PreventEqualsMisusage 1.6.0
dotnet add package PreventEqualsMisusage --version 1.6.0
NuGet\Install-Package PreventEqualsMisusage -Version 1.6.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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 and Polyglot Notebooks. 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.
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.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.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.
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