Class PluginPriorityComparer
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
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
Returns
- int
A signed integer that indicates the relative values of
x
andy
, as shown in the following table.
ValueMeaning
Less than zero
x
is less thany
.Zero
x
equalsy
.Greater than zero
x
is greater thany
.