Table of Contents

Class PluginPriorityComparer

Namespace
Exiled.Loader.Features
Assembly
Exiled.Loader.dll

Comparator implementation according to plugin priorities.

public sealed class PluginPriorityComparer : IComparer<IPlugin<IConfig>>
Inheritance
PluginPriorityComparer
Implements
Inherited Members
Extension Methods

Fields

Instance

Public instance.

public static readonly PluginPriorityComparer Instance

Field Value

PluginPriorityComparer

Methods

Compare(IPlugin<IConfig>, IPlugin<IConfig>)

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

public int Compare(IPlugin<IConfig> x, IPlugin<IConfig> y)

Parameters

x IPlugin<IConfig>

The first object to compare.

y IPlugin<IConfig>

The second object to compare.

Returns

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.