MemoryPolyfillExtension Class

Extension methods for the Memory<Char> struct, which are used in .NET Framework 4.6.2, .NET Standard 2.0 and .NET Standard 2.1 as polyfills for methods from current .NET versions.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class MemoryPolyfillExtension
Inheritance
Object    MemoryPolyfillExtension

Remarks

The methods of this class should only be used in the extension method syntax to simulate the methods of the Memory<Char> struct, which exist in more modern frameworks.

Methods

TrimRemoves all leading and trailing white space characters from character memory region.
TrimEndRemoves all trailing white space characters from a character memory region.
TrimStartRemoves all leading white space characters from a character memory region.

See Also