
from generator.equals190
A C# source generator that auto-implements IEquatable<T>, Equals/GetHashCode, comparison operators and provides a structured Inequalities() diff API via attribu
Generator.Equals is a compile-time C# source generator that produces robust equality members (IEquatable<T>, Equals, GetHashCode), ==/!= operators and a readable Inequalities() diff API based on simple attributes. It avoids runtime reflection by generating code during compilation and supports fine-grained control for fields, properties and collections via attributes like [OrderedEquality], [UnorderedEquality], [SetEquality], [PrecisionEquality] and [CustomEquality].
Use this when you want consistent, maintainable equality logic across domain types without hand-writing Equals/GetHashCode or fragile reflection-based comparers. It's particularly useful for DTOs, value types, records, and cases where you need per-field diffs for auditing or sync (using Inequalities()). Works well in libraries, domain models and test fixtures where deterministic equality matters.
Inferred: agents that understand developer tooling and code actions (e.g., Copilot-style assistants, code-focused Claude/Code models).
This skill has not been reviewed by our automated audit pipeline yet.