Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ReferenceEqualityComparer.cs =================================================================== diff -u -r4000 -r4052 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ReferenceEqualityComparer.cs (.../ReferenceEqualityComparer.cs) (revision 4000) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ReferenceEqualityComparer.cs (.../ReferenceEqualityComparer.cs) (revision 4052) @@ -48,42 +48,41 @@ using System; using System.Collections.Generic; -namespace Deltares.DamEngine.Data.Standard +namespace Deltares.DamEngine.Data.Standard; + +/// +/// Class to compare objects for equality +/// +/// +public class ReferenceEqualityComparer : EqualityComparer { /// - /// Class to compare objects for equality + /// Determines whether the specified , is equal to this instance. /// - /// - public class ReferenceEqualityComparer : EqualityComparer + /// The to compare with this instance. + /// The y. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object x, object y) { - /// - /// Determines whether the specified , is equal to this instance. - /// - /// The to compare with this instance. - /// The y. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object x, object y) - { - return ReferenceEquals(x, y); - } + return ReferenceEquals(x, y); + } - /// - /// Returns a hash code for this instance. - /// - /// The object. - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode(object obj) + /// + /// Returns a hash code for this instance. + /// + /// The object. + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode(object obj) + { + if (obj == null) { - if (obj == null) - { - return 0; - } - - return obj.GetHashCode(); + return 0; } + + return obj.GetHashCode(); } } \ No newline at end of file