System.Text.Json.Serialization.JsonConverter: practical reference
System.Text.Json.Serialization.JsonConverter: practical reference: JsonConverter<T> defines custom reading and writing for a specific type.
CKTIS / C#
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
System.Text.Json.Serialization.JsonConverter: practical reference: JsonConverter<T> defines custom reading and writing for a specific type.
System.Text.RegularExpressions.Regex: practical reference: Regex matches text according to a pattern and regular-expression engine options.
System.Text.StringBuilder: practical reference: StringBuilder maintains a mutable character buffer for repeated text composition.
System.Threading.CancellationToken: practical reference: CancellationToken carries a cooperative cancellation signal without forcibly aborting a thread.
CancellationTokenSource manages cooperative cancellation through a CancellationToken. Cancel requests that work stop, whereas Dispose releases resources and does not cancel operations.
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.
System.Threading.Channels.ChannelReader: practical reference: ChannelReader<T> reads elements asynchronously and signals channel completion.
System.Threading.Channels.ChannelWriter: practical reference: ChannelWriter<T> writes elements and completes the channel through TryComplete or Complete.
System.Threading.Interlocked: practical reference: Interlocked performs atomic read-modify-write operations on supported memory locations.
System.Threading.SemaphoreSlim: practical reference: SemaphoreSlim limits concurrent entries and supports WaitAsync.
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.
System.Threading.Tasks.TaskCompletionSource: practical reference: TaskCompletionSource<T> lets a producer complete a Task<T> manually.
System.Threading.Tasks.ValueTask: practical reference: ValueTask<T> can wrap a synchronous result or an asynchronous operation with fewer allocations.
System.Threading.Volatile: practical reference: Volatile.Read and Volatile.Write provide visibility and appropriate barriers for one memory location.
System.TimeOnly: practical reference: TimeOnly represents a time of day without a date, time zone, or offset.
System.TimeProvider: practical reference: TimeProvider abstracts current time and timers, enabling deterministic tests.
System.TimeSpan: practical reference: TimeSpan represents a duration as a number of ticks, not a date or time zone.
System.Type: practical reference: Type represents runtime type metadata, including generic definitions and members.
Task.Delay: practical reference: Task.Delay returns a Task that completes after a delay or cancellation without blocking a thread.
Task.Run: practical reference: Task.Run queues a delegate to the thread pool and returns a Task for its execution.
Task.WaitAsync: practical reference: Task.WaitAsync adds timeout or cancellation to waiting without changing the original Task.
Task.WhenAll: practical reference: Task.WhenAll completes after every task and aggregates results in input order.
Task.WhenAny: practical reference: Task.WhenAny completes when the first task reaches a terminal state and returns that Task.
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.