Class EntityKeyComparer<T>
Implements the System.Collections.Generic.IEqualityComparer<T> for a specific type T that implements IBaseEntity. Compares on canvas and ID
Inheritance
System.Object
EntityKeyComparer<T>
Implements
System.Collections.Generic.IEqualityComparer<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.API.Core
Assembly: API.dll
Syntax
public class EntityKeyComparer<T> : IEqualityComparer<T> where T : IBaseEntity
Type Parameters
| Name | Description |
|---|---|
| T | The type that implements IBaseEntity that we want to see if is in the same canvas with the same id |
Methods
Equals(T, T)
Compares on canvas and id for equality
Declaration
public bool Equals(T x, T y)
Parameters
| Type | Name | Description |
|---|---|---|
| T | x | First item to compare |
| T | y | Second item to compare |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the canvas and id are equal |
GetHashCode(T)
Hashcode for comparrison
Declaration
public int GetHashCode(T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The item to retrieve a hashcode for on what we compare for equality |
Returns
| Type | Description |
|---|---|
| System.Int32 | Hashcode for comparrison |
Implements
System.Collections.Generic.IEqualityComparer<T>