Edit

Share via


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

  1. Ensure that the variable is a value type.

See also


Additional resources