Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C#

Knowledge base — C#

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 443

C#

System.Text.StringBuilder: practical reference

System.Text.StringBuilder: practical reference: StringBuilder maintains a mutable character buffer for repeated text composition.

Basic · .NET API; verified against .NET 10 reference surface
C#

CancellationTokenSource — requesting cancellation and releasing resources

CancellationTokenSource manages cooperative cancellation through a CancellationToken. Cancel requests that work stop, whereas Dispose releases resources and does not cancel operations.

Intermediate · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification
C#

Channel — asynchronous producer-consumer data transfer

System.Threading.Channels.Channel creates channels connecting producers and consumers. A bounded channel can asynchronously wait for available space, while an unbounded channel imposes no item-count limit. Options also describe guarantees about concurrent read and write operations.

Intermediate · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification
C#

System.Threading.Interlocked: practical reference

System.Threading.Interlocked: practical reference: Interlocked performs atomic read-modify-write operations on supported memory locations.

Basic · .NET API; verified against .NET 10 reference surface
C#

Task — asynchronous operations and waiting for groups of tasks

Task represents an asynchronous operation, while Task<T> also provides its result. Learn the differences between Task.Yield, blocking Task.WaitAll, and nonblocking Task.WhenAll, including result ordering and failure handling.

Intermediate · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification
C#

System.Threading.Tasks.ValueTask: practical reference

System.Threading.Tasks.ValueTask: practical reference: ValueTask<T> can wrap a synchronous result or an asynchronous operation with fewer allocations.

Basic · .NET API; verified against .NET 10 reference surface
C#

System.Threading.Volatile: practical reference

System.Threading.Volatile: practical reference: Volatile.Read and Volatile.Write provide visibility and appropriate barriers for one memory location.

Basic · .NET API; verified against .NET 10 reference surface
C#

System.TimeOnly: practical reference

System.TimeOnly: practical reference: TimeOnly represents a time of day without a date, time zone, or offset.

Basic · .NET API; verified against .NET 10 reference surface
C#

System.TimeProvider: practical reference

System.TimeProvider: practical reference: TimeProvider abstracts current time and timers, enabling deterministic tests.

Basic · .NET API; verified against .NET 10 reference surface
C#

System.TimeSpan: practical reference

System.TimeSpan: practical reference: TimeSpan represents a duration as a number of ticks, not a date or time zone.

Basic · .NET API; verified against .NET 10 reference surface
C#

System.Type: practical reference

System.Type: practical reference: Type represents runtime type metadata, including generic definitions and members.

Basic · .NET API; verified against .NET 10 reference surface
C#

Task.Delay: practical reference

Task.Delay: practical reference: Task.Delay returns a Task that completes after a delay or cancellation without blocking a thread.

Basic · .NET API; verified against .NET 10 reference surface
C#

Task.Run: practical reference

Task.Run: practical reference: Task.Run queues a delegate to the thread pool and returns a Task for its execution.

Basic · .NET API; verified against .NET 10 reference surface
C#

Task.WaitAsync: practical reference

Task.WaitAsync: practical reference: Task.WaitAsync adds timeout or cancellation to waiting without changing the original Task.

Basic · .NET API; verified against .NET 10 reference surface
C#

Task.WhenAll: practical reference

Task.WhenAll: practical reference: Task.WhenAll completes after every task and aggregates results in input order.

Basic · .NET API; verified against .NET 10 reference surface
C#

Task.WhenAny: practical reference

Task.WhenAny: practical reference: Task.WhenAny completes when the first task reaches a terminal state and returns that Task.

Basic · .NET API; verified against .NET 10 reference surface
C#

TextWriter.Write(ReadOnlySpan<char>) — writing a text slice

TextWriter.Write(ReadOnlySpan<char>) writes characters from a memory view without appending a line terminator. It lets the caller pass a text slice without creating a substring, but does not guarantee allocation-free writing inside a particular writer.

Intermediate · .NET 10; repository net10.0 and LangVersion=preview; feature versions require per-entry verification