CKTIS / C#
System.Console: odniesienie praktyczne
System.Console: odniesienie praktyczne: Console udostępnia standardowe strumienie procesu oraz operacje tekstowe.
Wersja: .NET API; verified on .NET 10.0.14
Składnia
System.Console /* select a documented member or constructor */Console udostępnia standardowe strumienie procesu oraz operacje tekstowe.
Stosuj do programów CLI, diagnostyki lokalnej i przekierowywalnego stdout/stderr.
Dostępność, kodowanie i interaktywność zależą od hosta; WriteLine nie zastępuje trwałego logowania.
ReadLine może zwrócić null na końcu wejścia; przekierowane wyjście może nie obsługiwać kolorów i kursora.
Kompletny program rzeczywiście używa System.Console; oczekiwany stdout to dokładnie CKTIS.
Przykłady
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("CKTIS");
Wynik
CKTIS
Kompletny program rzeczywiście używa `System.Console`; oczekiwany stdout to dokładnie `CKTIS`.