nedcomp hosting homepage

Producten en Diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

C# Programmer's Reference  

<= 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.

expr1 <= expr2

Where:

expr1
An expression.
expr2
An expression.

Remarks

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

Example

// cs_operator_less_than_or_equal.cs
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 | 7.9 Relational and type testing operators