Show / Hide Table of Contents

Class EntityComparer

Inheritance
object
EntityComparer
Implements
IComparer<InternalEntity>
Namespace: LiteEntitySystem.Internal
Assembly: LiteEntitySystem.dll
Syntax
public class EntityComparer : IComparer<InternalEntity>

Fields

Instance

Declaration
public static readonly EntityComparer Instance
Field Value
Type Description
EntityComparer

Methods

Compare(InternalEntity, InternalEntity)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Declaration
public int Compare(InternalEntity x, InternalEntity y)
Parameters
Type Name Description
InternalEntity x

The first object to compare.

InternalEntity y

The second object to compare.

Returns
Type Description
int

A signed integer that indicates the relative values of x and y, as shown in the following table.
Value

Meaning

Less than zero

x is less than y.

Zero

x equals y.

Greater than zero

x is greater than y.

Implements

IComparer<T>
In this article
Back to top Generated by DocFX