47 packages tagged with “equals”
Generate Equals, GetHashCode and operator methods from properties for classes decorated with an [Equals] Attribute.
A source code generator for automatically implementing IEquatable<T> using only attributes.
A micro library for easily creating C# classes with value semantics. No need to override Equals, GetHashCode, et all.
Display a readable diff between two objects
Added String filters 'containsIgnoreCase' and 'eqIgnoreCase'
Efficient hash code and equality implementations for arbitrary objects.
A set of useful extensions for working with strings, spans, enums, and value formatting. Part of the "Open" set of libraries.
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.
An alternative "Plain Old C# Objects" mapper with minimal configuration required.
Package Description
Deep equal library done right
DeepEquals is a fast, flexible, and simple way of comparing objects deeply.
This library allows to define IEqualityComparer on arbitrary types to compare objects based on their members. Members are explicitly configured with strongly-typed fluent API. Members are not limited to properties but fields and methods can also be used for comparison. The library allows to implement overrides of Equals and GetHashCode methods by using provided MemberEqualityComparer type thus minimizing boilerplate.
C# class library, auto-generating the Equals and GetHashCode methods, based on the attribute configuration.
Represents a string which is guaranteed to be interned. Provides an optimized GetHashCode() and Equals(...) overrides, which rely on reference comparison rather than string contents.
Quick, easy, and correct implementation of object equality in .NET
Source generator for Equals and GetHashCode with attribute based control of equality implementation
If you would like to have a typed C#-like runtime in the browser instead of just at designtime with TypeScript, including type introspection, you reached the right place. If you are a fan of LINQ for Objects and enumerations, you definatelly reached the right place. Accelatrix is compatible with ES5 and provides a C#-like runtime in the browser, including: - GetHashCode() - GetType() - Equals() - ToString() You can now use your favourite LINQ operator functions operating on enumerations, not collections, and arrays are now enumerations: - Select() - Where() - SelectMany() - Distinct() - OfType() - GroupBy() - Skip() - Take() - Any() - ToList() - ....
The EqualityDefinition class simplifies the process of changing the meaning of equality for a type.
Comparação de objetos equals.
A simple diff comparison asserter that makes it easy to assert if two texts (strings) are equal, and display the differences in a diff tool if they are not. Simply put it is a much simpler (and dumber) version of ApprovalTests that should get the job done for simple scenarios. You can easily create a file that contains the expected result (your specification or example) and then compare the contents of the file with the actual value that is produced during the test. A new addition is the ability to compare objects wihout using files. It is an extension of FluentAssertions that allows comparison and exclusion of complex objects.
Source code package. An extension for asserting object equality by using the Code.Collections.Generic.AssertComparer.
Test your C# classes' Equals and GetHashCode implementations with ease
Inheritable tuples with protected members, correct equals contract and optional cacheable hashcodes.
A lightweight source generator that automatically implements value-based equality (Equals, GetHashCode, IEquatable and ToString) for your C# record or class types.
See https://github.com/Zefirrat/ImageComparer
An extension for asserting object equality by using the Quarks.AssertComparer
Automatically generates Equals and GetHashCode for annotated classes.