StringPool.TryGet(ReadOnlySpan<Char>, String) Method
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.
Tries to get a cached String instance matching the input content, if present.
public bool TryGet (ReadOnlySpan<char> span, out string? value);
member this.TryGet : ReadOnlySpan<char> * string -> bool
Public Function TryGet (span As ReadOnlySpan(Of Char), ByRef value As String) As Boolean
Parameters
- span
- ReadOnlySpan<Char>
The input ReadOnlySpan<T> with the contents to use.
Returns
Whether or not the target String instance was found.