Class ControllerInfoComparer
Compares two instances of ControllerInfo through the IComparer interface. Used for sorting and searching. Built for extensibility since the default only compares the System Names.
Inheritance
object
ControllerInfoComparer
Implements
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class ControllerInfoComparer : IComparer<ControllerInfo>
Constructors
View SourceControllerInfoComparer()
Declaration
public ControllerInfoComparer()
Methods
View SourceOnCompare(ControllerInfo, ControllerInfo)
Used to compare two instances of ControllerInfo, this method only compares the SystemNames, override and extend if needed.
Declaration
protected virtual int OnCompare(ControllerInfo x, ControllerInfo y)
Parameters
| Type | Name | Description |
|---|---|---|
| ControllerInfo | x | Instance X. |
| ControllerInfo | y | Instance Y. |
Returns
| Type | Description |
|---|---|
| int | Zero if equal, less then 0 if x is less then y, otherwise more then one. |