Loop control variable of type '<typename>' does not implement the 'System.IComparable' interface

A variable is of a type that does not implement the System.IComparable interface. System.IComparable must be implemented by a value type or a class.

To correct this error

  • Ensure that the variable is a value type.

Community Additions