Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 1.03 KB
title ms.date f1_keywords helpviewer_keywords ms.assetid
< Operator (C# Reference)
07/20/2015
<_CSharpKeyword
less than operator (<) [C#]
< operator [C#]
38cb91e6-79a6-48ec-9c1e-7b71fd8d2b41

< Operator (C# Reference)

All numeric and enumeration types define a "less than" relational operator (<) that returns true if the first operand is less than the second, false otherwise.

Remarks

User-defined types can overload the < operator (see operator). If < is overloaded, > must also be overloaded.

Example

[!code-csharpcsRefOperators#24]

See Also