Class StableHashExtensions
- Namespace
- XENBIT.ResQueServe.Core.Extensions
- Assembly
- RQS.Core.dll
public static class StableHashExtensions
- Inheritance
-
StableHashExtensions
- Inherited Members
Methods
StableEquals(IStableHash?, IStableHash?)
Compares two IStableHash instances for equality based on their stable hash values.
public static bool StableEquals(this IStableHash? a, IStableHash? b)
Parameters
aIStableHashThe first instance to compare.
bIStableHashThe second instance to compare.
Returns
- bool
trueif both instances are the same reference, or if both are non-null and have equal stable hash values; otherwise,false.
Remarks
This method provides a consistent equality comparison that relies on GetStableHash() rather than default reference or record equality. This is particularly useful when comparing interface types where the underlying implementations may differ but represent semantically equivalent data.