MemoryExtensions 类
定义
提供与内存和跨度相关的类型的扩展方法,例如、、 Memory<T> ReadOnlyMemory<T> Span<T> 和 ReadOnlySpan<T> 。Provides extension methods for the memory- and span-related types, such as Memory<T>, ReadOnlyMemory<T>, Span<T>, and ReadOnlySpan<T>.
public ref class MemoryExtensions abstract sealed
public static class MemoryExtensions
type MemoryExtensions = class
Public Module MemoryExtensions
- 继承
-
MemoryExtensions
方法
| AsMemory(String) |
在目标字符串的一部分上创建新的 |
| AsMemory(String, Index) |
从指定索引处开始,在目标字符串的一部分上创建新的 |
| AsMemory(String, Int32) |
从指定字符串位置开始,在目标字符串的一部分上创建新的 |
| AsMemory(String, Int32, Int32) |
从带有长度的指定位置开始,在目标字符串的一部分上创建新的 |
| AsMemory(String, Range) |
在目标字符串的指定范围内创建新的 |
| AsMemory<T>(ArraySegment<T>) |
在目标数组段的一部分上创建新的内存区域。Creates a new memory region over the portion of the target array segment. |
| AsMemory<T>(ArraySegment<T>, Int32) |
从指定位置开始到段的结尾,在目标数组段的一部分上创建新的内存区域。Creates a new memory region over the portion of the target array segment starting at a specified position to the end of the segment. |
| AsMemory<T>(ArraySegment<T>, Int32, Int32) |
从具有指定长度的指定位置开始,在目标数组段的一部分上创建新的内存区域。Creates a new memory region over the portion of the target array segment beginning at a specified position with a specified length. |
| AsMemory<T>(T[]) |
在目标数组上创建新的内存区域。Creates a new memory region over the target array. |
| AsMemory<T>(T[], Index) |
从指定索引开始到数组的结尾,在目标数组的一部分上创建一个新的内存区域。Creates a new memory region over the portion of the target array starting at a specified index to the end of the array. |
| AsMemory<T>(T[], Int32) |
从指定位置开始到数组的结尾,在目标数组的一部分上创建一个新的内存区域。Creates a new memory region over the portion of the target array starting at a specified position to the end of the array. |
| AsMemory<T>(T[], Int32, Int32) |
从具有指定长度的指定位置开始,在目标数组的一部分上创建新的内存区域。Creates a new memory region over the portion of the target array beginning at a specified position with a specified length. |
| AsMemory<T>(T[], Range) |
从范围的包含起始索引开始,到范围的不包含结束索引结束,在目标数组的一部分上创建新的内存区域。Creates a new memory region over the portion of the target array beginning at inclusive start index of the range and ending at the exclusive end index of the range. |
| AsSpan(String) |
从指定字符数量的指定位置在目标字符串的一部分上创建新的只读跨度。Creates a new read-only span over a portion of the target string from a specified position for a specified number of characters. |
| AsSpan(String, Int32) |
从指定位置到字符串结尾,在目标字符串的一部分上创建新的只读跨度。Creates a new read-only span over a portion of the target string from a specified position to the end of the string. |
| AsSpan(String, Int32, Int32) |
在字符串上创建新的只读跨度。Creates a new read-only span over a string. |
| AsSpan<T>(ArraySegment<T>) |
在目标数组段上创建新的跨度。Creates a new span over a target array segment. |
| AsSpan<T>(ArraySegment<T>, Index) |
在目标数组段的一部分上创建新的跨度,从指定的索引开始,以段的末尾结束。Creates a new span over a portion of the target array segment beginning at a specified index and ending at the end of the segment. |
| AsSpan<T>(ArraySegment<T>, Int32) |
从指定位置到段的结尾,在目标数组段的一部分上创建新的跨度。Creates a new span over a portion of a target array segment from a specified position to the end of the segment. |
| AsSpan<T>(ArraySegment<T>, Int32, Int32) |
从指定长度的指定位置在目标数组段的一部分上创建新的跨度。Creates a new span over a portion of a target array segment from a specified position for a specified length. |
| AsSpan<T>(ArraySegment<T>, Range) |
使用范围起始和结束索引在目标数组段的一部分上创建新的跨度。Creates a new span over a portion of a target array segment using the range start and end indexes. |
| AsSpan<T>(T[]) |
在目标数组上创建新的跨度。Creates a new span over a target array. |
| AsSpan<T>(T[], Index) |
在由 Index 值定义的目标数组部分上创建新的跨度。Creates a new span over the portion of the target array defined by an Index value. |
| AsSpan<T>(T[], Int32) |
从指定位置开始到数组的结尾,在目标数组的一部分上创建一个新的跨度。Creates a new span over a portion of the target array starting at a specified position to the end of the array. |
| AsSpan<T>(T[], Int32, Int32) |
从指定长度的指定位置在目标数组的一部分上创建新的跨度。Creates a new span over the portion of the target array beginning at a specified position for a specified length. |
| AsSpan<T>(T[], Range) |
在由 Range 值定义的目标数组部分上创建新的跨度。Creates a new span over a portion of a target array defined by a Range value. |
| BinarySearch<T,TComparable>(ReadOnlySpan<T>, TComparable) |
使用指定的 |
| BinarySearch<T,TComparable>(Span<T>, TComparable) |
使用指定的 |
| BinarySearch<T,TComparer>(ReadOnlySpan<T>, T, TComparer) |
使用指定的 |
| BinarySearch<T,TComparer>(Span<T>, T, TComparer) |
使用指定的 |
| BinarySearch<T>(ReadOnlySpan<T>, IComparable<T>) |
使用指定的 IComparable<T> 泛型接口,在整个已排序的 ReadOnlySpan<T> 中搜索值。Searches an entire sorted ReadOnlySpan<T> for a value using the specified IComparable<T> generic interface. |
| BinarySearch<T>(Span<T>, IComparable<T>) |
使用指定的 IComparable<T> 泛型接口,在整个已排序的 Span<T> 中搜索值。Searches an entire sorted Span<T> for a value using the specified IComparable<T> generic interface. |
| CompareTo(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
使用指定的字符串比较将一个字符跨度与另一个字符跨度进行比较,并返回表示其在排序顺序中的相对位置的整数。Compares one character span with another using a specified string comparison, and returns an integer that indicates their relative position in the sort order. |
| Contains(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
指示指定值是否出现在只读字符跨度内。Indicates whether a specified value occurs within a read-only character span. |
| Contains<T>(ReadOnlySpan<T>, T) |
指示是否在只读跨度内找到指定的值。Indicates whether a specified value is found in a read-only span. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| Contains<T>(Span<T>, T) |
指示是否在跨度内找到指定的值。Indicates whether a specified value is found in a span. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| CopyTo<T>(T[], Memory<T>) |
将数组的内容复制到内存区域。Copies the contents of the array into a memory region. |
| CopyTo<T>(T[], Span<T>) |
将数组的内容复制到跨度中。Copies the contents of the array into the span. |
| EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
使用指定的 |
| EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
确定指定的序列是否出现在只读跨度的结尾。Determines whether the specified sequence appears at the end of a read-only span. |
| EndsWith<T>(Span<T>, ReadOnlySpan<T>) |
确定指定的序列是否出现在跨度的结尾。Determines whether the specified sequence appears at the end of a span. |
| EnumerateRunes(ReadOnlySpan<Char>) |
从提供的只读跨度返回 Rune 的枚举。Returns an enumeration of Rune from the provided read-only span. |
| EnumerateRunes(Span<Char>) |
从提供的跨度返回 Rune 的枚举。Returns an enumeration of Rune from the provided span. |
| Equals(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
使用指定的 |
| IndexOf(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
报告当前 |
| IndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
搜索指定的序列并返回其第一次出现的索引。Searches for the specified sequence and returns the index of its first occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| IndexOf<T>(ReadOnlySpan<T>, T) |
搜索指定值并返回其第一次出现的索引。Searches for the specified value and returns the index of its first occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| IndexOf<T>(Span<T>, ReadOnlySpan<T>) |
搜索指定的序列并返回其第一次出现的索引。Searches for the specified sequence and returns the index of its first occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| IndexOf<T>(Span<T>, T) |
搜索指定值并返回其第一次出现的索引。Searches for the specified value and returns the index of its first occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| IndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
搜索任何指定值的第一个索引,其方式类似于使用逻辑 OR 运算符多次调用 IndexOf。Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
| IndexOfAny<T>(ReadOnlySpan<T>, T, T) |
搜索任何指定值的第一个索引,其方式类似于使用逻辑 OR 运算符多次调用 IndexOf。Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
| IndexOfAny<T>(ReadOnlySpan<T>, T, T, T) |
搜索任何指定值的第一个索引,其方式类似于使用逻辑 OR 运算符多次调用 IndexOf。Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
| IndexOfAny<T>(Span<T>, ReadOnlySpan<T>) |
搜索任何指定值的第一个索引,其方式类似于使用逻辑 OR 运算符多次调用 IndexOf。Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
| IndexOfAny<T>(Span<T>, T, T) |
搜索任何指定值的第一个索引,其方式类似于使用逻辑 OR 运算符多次调用 IndexOf。Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
| IndexOfAny<T>(Span<T>, T, T, T) |
搜索任何指定值的第一个索引,其方式类似于使用逻辑 OR 运算符多次调用 IndexOf。Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
| IsWhiteSpace(ReadOnlySpan<Char>) |
指示指定的跨度是否仅包含空格字符。Indicates whether the specified span contains only whitespace characters. |
| LastIndexOf(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
报告当前 |
| LastIndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
搜索指定的序列并返回其最后一次出现的索引。Searches for the specified sequence and returns the index of its last occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| LastIndexOf<T>(ReadOnlySpan<T>, T) |
搜索指定值并返回其最后一次出现的索引。Searches for the specified value and returns the index of its last occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| LastIndexOf<T>(Span<T>, ReadOnlySpan<T>) |
搜索指定的序列并返回其最后一次出现的索引。Searches for the specified sequence and returns the index of its last occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| LastIndexOf<T>(Span<T>, T) |
搜索指定值并返回其最后一次出现的索引。Searches for the specified value and returns the index of its last occurrence. 使用 IEquatable{T}.Equals(T) 比较各值。Values are compared using IEquatable{T}.Equals(T). |
| LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
搜索任何指定值的最后一个索引,其方式类似于使用逻辑 OR 运算符多次调用 LastIndexOf。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
| LastIndexOfAny<T>(ReadOnlySpan<T>, T, T) |
搜索任何指定值的最后一个索引,其方式类似于使用逻辑 OR 运算符多次调用 LastIndexOf。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
| LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T) |
搜索任何指定值的最后一个索引,其方式类似于使用逻辑 OR 运算符多次调用 LastIndexOf。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
| LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) |
搜索任何指定值的最后一个索引,其方式类似于使用逻辑 OR 运算符多次调用 LastIndexOf。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
| LastIndexOfAny<T>(Span<T>, T, T) |
搜索任何指定值的最后一个索引,其方式类似于使用逻辑 OR 运算符多次调用 LastIndexOf。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
| LastIndexOfAny<T>(Span<T>, T, T, T) |
搜索任何指定值的最后一个索引,其方式类似于使用逻辑 OR 运算符多次调用 LastIndexOf。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
| Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
确定两个只读序列是否在内存中重叠。Determines whether two read-only sequences overlap in memory. |
| Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Int32) |
确定两个只读序列是否在内存中重叠且输出元素偏移。Determines whether two read-only sequences overlap in memory and outputs the element offset. |
| Overlaps<T>(Span<T>, ReadOnlySpan<T>) |
确定跨度和只读跨度是否在内存中重叠。Determines whether a span and a read-only span overlap in memory. |
| Overlaps<T>(Span<T>, ReadOnlySpan<T>, Int32) |
确定跨度和只读跨度是否在内存中重叠且输出元素偏移。Determines whether a span and a read-only span overlap in memory and outputs the element offset. |
| Reverse<T>(Span<T>) |
反转整个跨度中元素的序列。Reverses the sequence of the elements in the entire span. |
| SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
通过使用 IComparable{T}.CompareTo(T) 比较它们的元素,确定两个只读序列的相对顺序。Determines the relative order of two read-only sequences by comparing their elements using IComparable{T}.CompareTo(T). |
| SequenceCompareTo<T>(Span<T>, ReadOnlySpan<T>) |
通过使用 IComparable{T}.CompareTo(T) 比较它们的元素,确定跨度和只读跨度的相对顺序。Determines the relative order of a span and a read-only span by comparing the elements using IComparable{T}.CompareTo(T). |
| SequenceEqual<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
通过使用 IEquatable{T}.Equals(T) 比较元素,确定两个只读序列是否相等。Determines whether two read-only sequences are equal by comparing the elements using IEquatable{T}.Equals(T). |
| SequenceEqual<T>(Span<T>, ReadOnlySpan<T>) |
通过使用 IEquatable{T}.Equals(T) 比较元素,确定跨度和只读跨度是否相等。Determines whether a span and a read-only span are equal by comparing the elements using IEquatable{T}.Equals(T). |
| Sort<T,TComparer>(Span<T>, TComparer) |
使用 |
| Sort<T>(Span<T>) |
使用 Span<T> 中每个元素的 IComparable<T> 实现,对整个 Span<T> 中的元素进行排序Sorts the elements in the entire Span<T> using the IComparable<T> implementation of each element of the Span<T> |
| Sort<T>(Span<T>, Comparison<T>) |
使用指定的 Comparison<T>,对整个 Span<T> 中的元素进行排序。Sorts the elements in the entire Span<T> using the specified Comparison<T>. |
| Sort<TKey,TValue,TComparer>(Span<TKey>, Span<TValue>, TComparer) |
基于第一个 Span<T> 中的键,使用指定的比较器,对一对范围(一个包含键,另一个包含对应的项)进行排序。Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first Span<T> using the specified comparer. |
| Sort<TKey,TValue>(Span<TKey>, Span<TValue>) |
基于第一个 Span<T> 中的键,使用每个键的 IComparable<T> 实现,对一对范围(一个包含键,另一个包含对应的项)进行排序。Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first Span<T> using the IComparable<T> implementation of each key. |
| Sort<TKey,TValue>(Span<TKey>, Span<TValue>, Comparison<TKey>) |
基于第一个 Span<T> 中的键,使用指定的比较,对一对范围(一个包含键,另一个包含对应的项)进行排序。Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first Span<T> using the specified comparison. |
| StartsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
使用指定的 StringComparison 值进行比较时,确定只读字符跨度是否以指定值开头。Determines whether a read-only character span begins with a specified value when compared using a specified StringComparison value. |
| StartsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
确定指定的序列是否出现在只读跨度的开头。Determines whether a specified sequence appears at the start of a read-only span. |
| StartsWith<T>(Span<T>, ReadOnlySpan<T>) |
确定指定的序列是否出现在跨度的开头。Determines whether a specified sequence appears at the start of a span. |
| ToLower(ReadOnlySpan<Char>, Span<Char>, CultureInfo) |
请将源跨度中的字符复制到目标中,并使用指定区域性的大小写规则将每个字符都转换为小写。Copies the characters from the source span into the destination, converting each character to lowercase, using the casing rules of the specified culture. |
| ToLowerInvariant(ReadOnlySpan<Char>, Span<Char>) |
请将源跨度中的字符复制到目标中,并使用固定区域性的大小写规则将每个字符都转换为小写。Copies the characters from the source span into the destination, converting each character to lowercase, using the casing rules of the invariant culture. |
| ToUpper(ReadOnlySpan<Char>, Span<Char>, CultureInfo) |
请将源跨度中的字符复制到目标中,并使用指定区域性的大小写规则将每个字符都转换为大写。Copies the characters from the source span into the destination, converting each character to uppercase, using the casing rules of the specified culture. |
| ToUpperInvariant(ReadOnlySpan<Char>, Span<Char>) |
请将源跨度中的字符复制到目标中,并使用固定区域性的大小写规则将每个字符都转换为大写。Copies the characters from the source span into the destination, converting each character to uppercase using the casing rules of the invariant culture. |
| Trim(Memory<Char>) |
删除字符内存区域中的所有前导和尾随空格字符。Removes all leading and trailing whitespace characters from a character memory region. |
| Trim(ReadOnlyMemory<Char>) |
删除只读字符内存区域中的所有前导和尾随空格字符。Removes all leading and trailing whitespace characters from a read-only character memory region. |
| Trim(ReadOnlySpan<Char>) |
删除只读字符跨度中的所有前导和尾随空格字符。Removes all leading and trailing whitespace characters from a read-only character span. |
| Trim(ReadOnlySpan<Char>, Char) |
删除只读字符跨度中的指定字符的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a specified character from a read-only character span. |
| Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) |
从只读字符跨度中删除在只读跨度中指定的一组字符的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a set of characters specified in a read-only span from a read-only character span. |
| Trim(Span<Char>) |
删除字符跨度中的所有前导和尾随空格字符。Removes all leading and trailing whitespace characters from a character span. |
| Trim<T>(Memory<T>, ReadOnlySpan<T>) |
从内存区域中删除在只读跨度中指定的一组元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a memory region. |
| Trim<T>(Memory<T>, T) |
删除内存区域中的指定元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a specified element from a memory region. |
| Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) |
从只读内存区域中删除在只读跨度中指定的一组元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only memory region. |
| Trim<T>(ReadOnlyMemory<T>, T) |
删除只读内存区域中的指定元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a specified element from a read-only memory region. |
| Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
从只读跨度中删除在只读跨度中指定的一组元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only span. |
| Trim<T>(ReadOnlySpan<T>, T) |
删除只读跨度中的指定元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a specified element from a read-only span. |
| Trim<T>(Span<T>, ReadOnlySpan<T>) |
从跨度中删除在只读跨度中指定的一组元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a span. |
| Trim<T>(Span<T>, T) |
删除跨度中的指定元素的所有前导和尾随出现次数。Removes all leading and trailing occurrences of a specified element from a span. |
| TrimEnd(Memory<Char>) |
删除字符内存区域中的所有前导空格字符。Removes all trailing whitespace characters from a character memory region. |
| TrimEnd(ReadOnlyMemory<Char>) |
删除只读字符内存区域中的所有前导空格字符。Removes all trailing whitespace characters from a read-only character memory region. |
| TrimEnd(ReadOnlySpan<Char>) |
删除只读字符跨度中的所有前导空格字符。Removes all trailing whitespace characters from a read-only character span. |
| TrimEnd(ReadOnlySpan<Char>, Char) |
删除只读跨度中的指定字符的所有尾随出现次数。Removes all trailing occurrences of a specified character from a read-only span. |
| TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) |
从只读字符跨度中删除在只读跨度中指定的一组字符的所有尾随出现次数。Removes all trailing occurrences of a set of characters specified in a read-only span from a read-only character span. |
| TrimEnd(Span<Char>) |
删除字符跨度中的所有前导空格字符。Removes all trailing whitespace characters from a character span. |
| TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) |
从内存区域中删除在只读跨度中指定的一组元素的所有尾随出现次数。Removes all trailing occurrences of a set of elements specified in a read-only span from a memory region. |
| TrimEnd<T>(Memory<T>, T) |
删除字符内存区域中的指定元素的所有尾随出现次数。Removes all trailing occurrences of a specified element from a character memory region. |
| TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) |
从只读内存区域中删除在只读跨度中指定的一组元素的所有尾随出现次数。Removes all trailing occurrences of a set of elements specified in a read-only span from a read-only memory region. |
| TrimEnd<T>(ReadOnlyMemory<T>, T) |
删除只读内存区域中的指定元素的所有尾随出现次数。Removes all trailing occurrences of a specified element from a read-only memory region. |
| TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
从只读跨度中删除在只读跨度中指定的一组元素的所有尾随出现次数。Removes all trailing occurrences of a set of elements specified in a read-only span from a read-only span. |
| TrimEnd<T>(ReadOnlySpan<T>, T) |
删除只读跨度中的指定元素的所有尾随出现次数。Removes all trailing occurrences of a specified element from a read-only span. |
| TrimEnd<T>(Span<T>, ReadOnlySpan<T>) |
从跨度中删除在只读跨度中指定的一组元素的所有尾随出现次数。Removes all trailing occurrences of a set of elements specified in a read-only span from a span. |
| TrimEnd<T>(Span<T>, T) |
删除跨度中的指定元素的所有尾随出现次数。Removes all trailing occurrences of a specified element from a span. |
| TrimStart(Memory<Char>) |
删除内存区域中的所有前导空格字符。Removes all leading whitespace characters from a memory region. |
| TrimStart(ReadOnlyMemory<Char>) |
删除只读内存区域中的所有前导空格字符。Removes all leading whitespace characters from a read-only memory region. |
| TrimStart(ReadOnlySpan<Char>) |
删除只读跨度中的所有前导空格字符。Removes all leading whitespace characters from a read-only span. |
| TrimStart(ReadOnlySpan<Char>, Char) |
删除跨度中的指定字符的所有前导出现次数。Removes all leading occurrences of a specified character from the span. |
| TrimStart(ReadOnlySpan<Char>, ReadOnlySpan<Char>) |
从跨度中删除在只读跨度中指定的一组字符的所有前导出现次数。Removes all leading occurrences of a set of characters specified in a read-only span from the span. |
| TrimStart(Span<Char>) |
删除跨度中的所有前导空格字符。Removes all leading whitespace characters from a span. |
| TrimStart<T>(Memory<T>, ReadOnlySpan<T>) |
从内存区域中删除在只读跨度中指定的一组元素的所有前导出现次数。Removes all leading occurrences of a set of elements specified in a read-only span from a memory region. |
| TrimStart<T>(Memory<T>, T) |
删除内存区域中的指定元素的所有前导出现次数。Removes all leading occurrences of a specified element from a memory region. |
| TrimStart<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) |
从内存区域中删除在只读跨度中指定的一组元素的所有前导出现次数。Removes all leading occurrences of a set of elements specified in a read-only span from a memory region. |
| TrimStart<T>(ReadOnlyMemory<T>, T) |
删除内存区域中的指定元素的所有前导出现次数。Removes all leading occurrences of a specified element from a memory region. |
| TrimStart<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
从跨度中删除在只读跨度中指定的一组元素的所有前导出现次数。Removes all leading occurrences of a set of elements specified in a read-only span from the span. |
| TrimStart<T>(ReadOnlySpan<T>, T) |
删除跨度中的指定元素的所有前导出现次数。Removes all leading occurrences of a specified element from the span. |
| TrimStart<T>(Span<T>, ReadOnlySpan<T>) |
从跨度中删除在只读跨度中指定的一组元素的所有前导出现次数。Removes all leading occurrences of a set of elements specified in a read-only span from the span. |
| TrimStart<T>(Span<T>, T) |
删除跨度中的指定元素的所有前导出现次数。Removes all leading occurrences of a specified element from the span. |