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

The logical negation operator (!) is a unary operator that negates its operand. It is defined for bool and returns true if and only if its operand is false.

! expr

Where:

expr
An expression.

Remarks

User-defined types can overload the ! operator (see operator).

Example

// cs_operator_negation.cs
using System;
class Test 
{
   public static void Main() 
{
      Console.WriteLine(!true);
      Console.WriteLine(!false);
   }
}

Output

False
True

See Also

C# Operators | 7.6.3 Logical negation operator