StringCache.GetOrAdd method

Gets an existing string from the cache, or adds it if it’s not currently in the cache.

public string? GetOrAdd(string? value)
parameter description
value The string value to look up.

Return Value

The unique cached instance of a String that is equal to value.

See Also