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
System.Object
ControllerInfoComparer
Implements
System.Collections.Generic.IComparer<ControllerInfo>
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class ControllerInfoComparer : IComparer<ControllerInfo>
Constructors
ControllerInfoComparer()
Declaration
public ControllerInfoComparer()
Methods
OnCompare(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 |
---|---|
System.Int32 | Zero if equal, less then 0 if x is less then y, otherwise more then one. |
Explicit Interface Implementations
IComparer<ControllerInfo>.Compare(ControllerInfo, ControllerInfo)
Declaration
int IComparer<ControllerInfo>.Compare(ControllerInfo x, ControllerInfo y)
Parameters
Type | Name | Description |
---|---|---|
ControllerInfo | x | |
ControllerInfo | y |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<T>