false
Allgemeines
Repräsentiert ein Literal, das dem Wahrheitswert false entspricht.
Beipiel
| C# |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using System;
namespace GoloRoden.GuideToCSharp
{
/// <summary>
/// Represents the application class.
/// </summary>
public class Program
{
/// <summary>
/// Executes the application.
/// </summary>
public static void Main()
{
// Define a foo and a bar variable.
bool foo = true;
bool bar = false;
// foo and boo are not both true, hence the
// result is false.
bool result = foo && bar;
}
}
}
|
Details
false ist der Standardwert für den Typ
bool.
Siehe auch (Referenz)
Siehe auch (Guide)