ReadOnlyMemoryPolyfillExtensionTrimEnd Method
Removes all trailing white space characters from a read-only character memory
region.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static ReadOnlyMemory<char> TrimEnd(
this ReadOnlyMemory<char> memory
)
<ExtensionAttribute>
Public Shared Function TrimEnd (
memory As ReadOnlyMemory(Of Char)
) As ReadOnlyMemory(Of Char)
public:
[ExtensionAttribute]
static ReadOnlyMemory<wchar_t> TrimEnd(
ReadOnlyMemory<wchar_t> memory
)
[<ExtensionAttribute>]
static member TrimEnd :
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).