System.Buffers.MemoryPool: practical reference
System.Buffers.MemoryPool: practical reference: MemoryPool<T> rents an IMemoryOwner<T> whose Memory<T> remains owned until Dispose returns the resource.
CKTIS / C#
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
System.Buffers.MemoryPool: practical reference: MemoryPool<T> rents an IMemoryOwner<T> whose Memory<T> remains owned until Dispose returns the resource.
System.Collections.Concurrent.ConcurrentBag: practical reference: ConcurrentBag<T> is a thread-safe unordered collection optimized for threads that add and take their own local items.
System.Collections.Concurrent.ConcurrentDictionary: practical reference: ConcurrentDictionary<TKey,TValue> supports concurrent reads and atomic operations on individual key-value entries.
System.Collections.Concurrent.ConcurrentQueue: practical reference: ConcurrentQueue<T> provides thread-safe first-in, first-out behavior through Enqueue and TryDequeue.
System.Collections.Frozen.FrozenDictionary: practical reference: FrozenDictionary<TKey,TValue> is an immutable lookup index prepared once for fast and frequent key reads.
System.Collections.Frozen.FrozenSet: practical reference: FrozenSet<T> is an immutable set optimized for repeated Contains checks after construction is complete.
System.Collections.Generic.Dictionary: practical reference: Dictionary<TKey,TValue> maps unique keys to values according to an IEqualityComparer<TKey>.
System.Collections.Generic.HashSet: practical reference: HashSet<T> stores unique values according to the equality and hash code supplied by its comparer.
System.Collections.Generic.IAsyncEnumerable: practical reference: IAsyncEnumerable<T> represents a stream whose successive MoveNextAsync operations may wait asynchronously for each item.
System.Collections.Generic.IComparer: practical reference: IComparer<T> defines ordering by returning a negative value, zero, or a positive value from Compare.
System.Collections.Generic.IEnumerable: practical reference: IEnumerable<T> describes a sequence without promising its size, indexing, buffering, or repeatability.
System.Collections.Generic.IEnumerator: practical reference: IEnumerator<T> is a stateful cursor advanced by MoveNext, with Current exposing the element at the valid position.
System.Collections.Generic.IEqualityComparer: practical reference: IEqualityComparer<T> defines matching Equals and GetHashCode behavior for keys or elements.
IReadOnlyDictionary<TKey, TValue> exposes key–value pairs for reading without mutation operations. It does not guarantee immutable data. Learn lookup options and CollectionExtensions.GetValueOrDefault.
System.Collections.Generic.IReadOnlyList: practical reference: IReadOnlyList<T> exposes Count and indexed reads without mutation methods on the interface.
System.Collections.Generic.LinkedList: practical reference: LinkedList<T> is a doubly linked list with constant-time insertion or removal when the node is already known.
List<T> in System.Collections.Generic stores elements of a specified type in an ordered, mutable collection. The Add method appends an element, while the Count property reports the current number of elements, not the list's capacity.
System.Collections.Generic.PriorityQueue: practical reference: PriorityQueue<TElement,TPriority> removes the element with the lowest priority according to its priority comparer.
System.Collections.Generic.Queue: practical reference: Queue<T> implements first-in, first-out order through Enqueue, Peek, and Dequeue.
System.Collections.Generic.SortedDictionary: practical reference: SortedDictionary<TKey,TValue> keeps keys ordered by an IComparer<TKey> with logarithmic lookup and update operations.
System.Collections.Generic.SortedSet: practical reference: SortedSet<T> keeps unique elements in the order defined by its comparer.
System.Collections.Generic.Stack: practical reference: Stack<T> implements last-in, first-out order through Push, Peek, and Pop.
System.Collections.Immutable.ImmutableArray: practical reference: ImmutableArray<T> is a value-type immutable array whose update operations return another structure.
System.Collections.Immutable.ImmutableDictionary: practical reference: ImmutableDictionary<TKey,TValue> returns a new structurally shared map after each effective change.