Method ToLowerInvariant
ToLowerInvariant(ReadOnlyExSpan<char>, ExSpan<char>)
Copies the characters from the source span into the destination, converting each character to lowercase, using the casing rules of the invariant culture.
public static nint ToLowerInvariant(this ReadOnlyExSpan<char> source, ExSpan<char> destination)
Parameters
source
ReadOnlyExSpan<char>The source span.
destination
ExSpan<char>The destination span which contains the transformed characters.
Returns
- nint
The number of characters written into the destination span. If the destination is too small, returns -1.
Exceptions
- InvalidOperationException
The source and destination buffers overlap.
- ExSpanTooLongException
Throws an exception if the length is out of the range of Int32.