StringPool.Shared Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.