ReadOnlyMemoryPolyfillExtensionTrim Method
Removes all leading and trailing white space characters from a read-only
character memory region.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.3+0b4e3cc14d7870504a77e224d298b921bfc6f2ee
public static ReadOnlyMemory<char> Trim(
this ReadOnlyMemory<char> memory
)
<ExtensionAttribute>
Public Shared Function Trim (
memory As ReadOnlyMemory(Of Char)
) As ReadOnlyMemory(Of Char)
public:
[ExtensionAttribute]
static ReadOnlyMemory<wchar_t> Trim(
ReadOnlyMemory<wchar_t> memory
)
[<ExtensionAttribute>]
static member Trim :
memory : ReadOnlyMemory<char> -> ReadOnlyMemory<char>
- memory ReadOnlyMemoryChar
- The source memory from which the characters are removed.
ReadOnlyMemoryCharThe trimmed character memory region.In Visual Basic and C#, you can call this method as an instance method on any object of type
ReadOnlyMemoryChar. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).