CKTIS / C#
false: praktična referenca
false: praktična referenca: false je literal bool koji predstavlja logičku neistinu.
Verzija: C# language; verified against C# 14 reference
Sintaksa
false /* grammar-specific form */false je literal bool koji predstavlja logičku neistinu.
Koristite ga izravno umjesto usporedbe == false kada je negacija jasna.
Preopterećeni operatori true i false mogu korisničkom tipu dati nestandardno ponašanje.
Nullable može biti null, što false ne predstavlja.
Cijeli program doista koristi false; točno očekivani stdout jest False.
Primjeri
using System;
using System.Buffers;
using System.Collections.Concurrent;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using Number = System.Int32;
Console.WriteLine(false);
Rezultat
False
Cijeli program doista koristi `false`; točno očekivani stdout jest `False`.