NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

<= Operator

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

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

Example

using System;
class Test {
   public static void Main() {
      Console.WriteLine(1 <= 1.1);
      Console.WriteLine(1.1 <= 1.1);
   }
}

Output

True
True

See Also

C# Operators | CLR 7.9 Relational operators