Class EntityObjectComparer
- Namespace
- TimeCockpit.Data
- Assembly
- TimeCockpit.Data.dll
Compares EntityObjects for equality based on their reference and then ObjectUuid.
public sealed class EntityObjectComparer : IEqualityComparer<EntityObject>
- Inheritance
-
ObjectEntityObjectComparer
- Implements
-
IEqualityComparer<EntityObject>
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
EntityObjectComparer()
public EntityObjectComparer()
Methods
Equals(EntityObject, EntityObject)
Determines whether the specified objects are equal.
public bool Equals(EntityObject x, EntityObject y)
Parameters
xEntityObjectThe first object to compare.
yEntityObjectThe second object to compare.
Returns
- Boolean
true if the specified objects are equal; otherwise, false.
GetHashCode(EntityObject)
Returns a hash code for the specified object.
public int GetHashCode(EntityObject obj)
Parameters
objEntityObjectThe Object for which a hash code is to be returned.
Returns
- Int32
A hash code for the specified object.