Modifier

Partager via


StringPool.Shared Property

Definition

Gets the shared StringPool instance.

public static Microsoft.Toolkit.HighPerformance.Buffers.StringPool Shared { get; }
static member Shared : Microsoft.Toolkit.HighPerformance.Buffers.StringPool
Public Shared ReadOnly Property Shared As StringPool

Property Value

Remarks

The shared pool provides a singleton, reusable StringPool instance that can be accessed directly, and that pools String instances for the entire process. Since StringPool is thread-safe, the shared instance can be used concurrently by multiple threads without the need for manual synchronization.

Applies to