Equatable 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Equatable --version 1.0.2
                    
NuGet\Install-Package Equatable -Version 1.0.2
                    
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="Equatable" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Equatable" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Equatable" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Equatable --version 1.0.2
                    
#r "nuget: Equatable, 1.0.2"
                    
#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.
#addin nuget:?package=Equatable&version=1.0.2
                    
Install Equatable as a Cake Addin
#tool nuget:?package=Equatable&version=1.0.2
                    
Install Equatable as a Cake Tool

Equatable Library

Equatable is a simple .NET library that provides an abstract base class for value-based equality comparison. By implementing this class, derived classes can compare themselves based on a list of properties (Props) and generate consistent hash codes. The library also includes an option for creating a string representation of an object using its properties.

Features

  • Value-Based Equality: Compare objects based on a list of properties (Props).
  • Customizable String Representation: Optionally, generate a string representation of the object using its properties.
  • Overrides for Equals(), GetHashCode(), and ToString(): Ensures that the object behaves correctly in collections like HashSet and Dictionary.

Installation

You can install the package via NuGet.

Using the .NET CLI:

To install the package, run the following command in your project directory:

dotnet add package Equatable --version 1.0.2

GitHub repository

Url: https://github.com/iskandarem/Equatable/

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • 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 Downloads Last updated
1.0.7 105 5/22/2025
1.0.6 106 5/22/2025
1.0.5 102 5/20/2025
1.0.4 102 5/11/2025
1.0.3 34 5/10/2025
1.0.2 47 5/9/2025
1.0.1 61 5/9/2025