MemoryExtensions.TrimEnd MemoryExtensions.TrimEnd MemoryExtensions.TrimEnd MemoryExtensions.TrimEnd Method

定義

オーバーロード

TrimEnd(Memory<Char>) TrimEnd(Memory<Char>) TrimEnd(Memory<Char>) TrimEnd(Memory<Char>)

文字メモリ領域から末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a character memory region.

TrimEnd(ReadOnlyMemory<Char>) TrimEnd(ReadOnlyMemory<Char>) TrimEnd(ReadOnlyMemory<Char>) TrimEnd(ReadOnlyMemory<Char>)

読み取り専用文字メモリ領域から末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a read-only character memory region.

TrimEnd(ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>)

読み取り専用文字スパンから末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a read-only character span.

TrimEnd(Span<Char>) TrimEnd(Span<Char>) TrimEnd(Span<Char>) TrimEnd(Span<Char>)

文字スパンから末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a character span.

TrimEnd(ReadOnlySpan<Char>, Char) TrimEnd(ReadOnlySpan<Char>, Char) TrimEnd(ReadOnlySpan<Char>, Char) TrimEnd(ReadOnlySpan<Char>, Char)

読み取り専用スパンから、指定した文字が末尾に現れる箇所をすべて削除します。Removes all trailing occurrences of a specified character from a read-only span.

TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) 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<T>(Span<T>, T) TrimEnd<T>(Span<T>, T) TrimEnd<T>(Span<T>, T) TrimEnd<T>(Span<T>, T)

指定された要素が末尾に現れる箇所をすべて、スパンから削除します。Removes all trailing occurrences of a specified element from a span.

TrimEnd<T>(Span<T>, ReadOnlySpan<T>) TrimEnd<T>(Span<T>, ReadOnlySpan<T>) TrimEnd<T>(Span<T>, ReadOnlySpan<T>) 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>(ReadOnlySpan<T>, T) TrimEnd<T>(ReadOnlySpan<T>, T) TrimEnd<T>(ReadOnlySpan<T>, T) TrimEnd<T>(ReadOnlySpan<T>, T)

読み取り専用スパンから、指定した要素が末尾に現れる箇所をすべて削除します。Removes all trailing occurrences of a specified element from a read-only span.

TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) 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>(ReadOnlyMemory<T>, T) TrimEnd<T>(ReadOnlyMemory<T>, T) TrimEnd<T>(ReadOnlyMemory<T>, T) TrimEnd<T>(ReadOnlyMemory<T>, T)

指定された要素が末尾に現れる箇所をすべて、読み取り専用メモリ領域から削除します。Removes all trailing occurrences of a specified element from a read-only memory region.

TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) 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>(Memory<T>, T) TrimEnd<T>(Memory<T>, T) TrimEnd<T>(Memory<T>, T) TrimEnd<T>(Memory<T>, T)

指定された要素が末尾に現れる箇所をすべて、文字メモリ領域から削除します。Removes all trailing occurrences of a specified element from a character memory region.

TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) 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(Memory<Char>) TrimEnd(Memory<Char>) TrimEnd(Memory<Char>) TrimEnd(Memory<Char>)

文字メモリ領域から末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a character memory region.

public:
[System::Runtime::CompilerServices::Extension]
 static Memory<char> TrimEnd(Memory<char> memory);
public static Memory<char> TrimEnd (this Memory<char> memory);
static member TrimEnd : Memory<char> -> Memory<char>
<Extension()>
Public Function TrimEnd (memory As Memory(Of Char)) As Memory(Of Char)

パラメーター

memory
Memory<Char>

文字が削除されるソース メモリ。The source memory from which the characters are removed.

戻り値

トリミングされた文字メモリ領域。The trimmed character memory region.

TrimEnd(ReadOnlyMemory<Char>) TrimEnd(ReadOnlyMemory<Char>) TrimEnd(ReadOnlyMemory<Char>) TrimEnd(ReadOnlyMemory<Char>)

読み取り専用文字メモリ領域から末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a read-only character memory region.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<char> TrimEnd(ReadOnlyMemory<char> memory);
public static ReadOnlyMemory<char> TrimEnd (this ReadOnlyMemory<char> memory);
static member TrimEnd : ReadOnlyMemory<char> -> ReadOnlyMemory<char>
<Extension()>
Public Function TrimEnd (memory As ReadOnlyMemory(Of Char)) As ReadOnlyMemory(Of Char)

パラメーター

memory
ReadOnlyMemory<Char>

文字が削除されるソース メモリ。The source memory from which the characters are removed.

戻り値

トリミングされた読み取り専用文字スパン。The trimmed read-only character span.

TrimEnd(ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>)

読み取り専用文字スパンから末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a read-only character span.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<char> TrimEnd(ReadOnlySpan<char> span);
public static ReadOnlySpan<char> TrimEnd (this ReadOnlySpan<char> span);
static member TrimEnd : ReadOnlySpan<char> -> ReadOnlySpan<char>
<Extension()>
Public Function TrimEnd (span As ReadOnlySpan(Of Char)) As ReadOnlySpan(Of Char)

パラメーター

span
ReadOnlySpan<Char>

文字が削除されるソース スパン。The source span from which the characters are removed.

戻り値

トリミングされた読み取り専用文字スパン。The trimmed read-only character span.

TrimEnd(Span<Char>) TrimEnd(Span<Char>) TrimEnd(Span<Char>) TrimEnd(Span<Char>)

文字スパンから末尾の空白文字をすべて削除します。Removes all trailing whitespace characters from a character span.

public:
[System::Runtime::CompilerServices::Extension]
 static Span<char> TrimEnd(Span<char> span);
public static Span<char> TrimEnd (this Span<char> span);
static member TrimEnd : Span<char> -> Span<char>
<Extension()>
Public Function TrimEnd (span As Span(Of Char)) As Span(Of Char)

パラメーター

span
Span<Char>

文字が削除されるソース スパン。The source span from which the characters are removed.

戻り値

トリミングされた文字スパン。The trimmed character span.

TrimEnd(ReadOnlySpan<Char>, Char) TrimEnd(ReadOnlySpan<Char>, Char) TrimEnd(ReadOnlySpan<Char>, Char) TrimEnd(ReadOnlySpan<Char>, Char)

読み取り専用スパンから、指定した文字が末尾に現れる箇所をすべて削除します。Removes all trailing occurrences of a specified character from a read-only span.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<char> TrimEnd(ReadOnlySpan<char> span, char trimChar);
public static ReadOnlySpan<char> TrimEnd (this ReadOnlySpan<char> span, char trimChar);
static member TrimEnd : ReadOnlySpan<char> * char -> ReadOnlySpan<char>
<Extension()>
Public Function TrimEnd (span As ReadOnlySpan(Of Char), trimChar As Char) As ReadOnlySpan(Of Char)

パラメーター

span
ReadOnlySpan<Char>

文字が削除されるソース スパン。The source span from which the character is removed.

trimChar
Char Char Char Char

検索と削除の対象となる指定された文字。The specified character to look for and remove.

戻り値

トリミングされた読み取り専用文字スパン。The trimmed read-only character span.

TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) 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.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<char> TrimEnd(ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars);
public static ReadOnlySpan<char> TrimEnd (this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars);
static member TrimEnd : ReadOnlySpan<char> * ReadOnlySpan<char> -> ReadOnlySpan<char>
<Extension()>
Public Function TrimEnd (span As ReadOnlySpan(Of Char), trimChars As ReadOnlySpan(Of Char)) As ReadOnlySpan(Of Char)

パラメーター

span
ReadOnlySpan<Char>

文字が削除されるソース スパン。The source span from which the characters are removed.

trimChars
ReadOnlySpan<Char>

削除対象の文字のセットを格納するスパン。The span which contains the set of characters to remove.

戻り値

トリミングされた読み取り専用文字スパン。The trimmed read-only character span.

注釈

trimChars空の場合は、代わりに空白文字が削除されます。If trimChars is empty, whitespace characters are removed instead.

TrimEnd<T>(Span<T>, T) TrimEnd<T>(Span<T>, T) TrimEnd<T>(Span<T>, T) TrimEnd<T>(Span<T>, T)

指定された要素が末尾に現れる箇所をすべて、スパンから削除します。Removes all trailing occurrences of a specified element from a span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Span<T> TrimEnd(Span<T> span, T trimElement);
public static Span<T> TrimEnd<T> (this Span<T> span, T trimElement) where T : IEquatable<T>;
static member TrimEnd : Span<'T (requires 'T :> IEquatable<'T>)> * 'T -> Span<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (span As Span(Of T), trimElement As T) As Span(Of T)

型パラメーター

T

スパン内の要素の型。The type of the elements in the span.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

要素が削除されるソース スパン。The source span from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされたスパン。The trimmed span.

TrimEnd<T>(Span<T>, ReadOnlySpan<T>) TrimEnd<T>(Span<T>, ReadOnlySpan<T>) TrimEnd<T>(Span<T>, ReadOnlySpan<T>) TrimEnd<T>(Span<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が末尾に現れる箇所をすべて、スパンから削除します。Removes all trailing occurrences of a set of elements specified in a read-only span from a span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Span<T> TrimEnd(Span<T> span, ReadOnlySpan<T> trimElements);
public static Span<T> TrimEnd<T> (this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member TrimEnd : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> Span<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (span As Span(Of T), trimElements As ReadOnlySpan(Of T)) As Span(Of T)

型パラメーター

T

スパン内の要素の型。The type of the elements in the span.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

要素が削除されるソース スパン。The source span from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされたスパン。The trimmed span.

注釈

trimElements空の場合、スパンは変更されずに返されます。If trimElements is empty, the span is returned unaltered.

TrimEnd<T>(ReadOnlySpan<T>, T) TrimEnd<T>(ReadOnlySpan<T>, T) TrimEnd<T>(ReadOnlySpan<T>, T) TrimEnd<T>(ReadOnlySpan<T>, T)

読み取り専用スパンから、指定した要素が末尾に現れる箇所をすべて削除します。Removes all trailing occurrences of a specified element from a read-only span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<T> TrimEnd(ReadOnlySpan<T> span, T trimElement);
public static ReadOnlySpan<T> TrimEnd<T> (this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>;
static member TrimEnd : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T -> ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), trimElement As T) As ReadOnlySpan(Of T)

型パラメーター

T

読み取り専用スパン内の要素の型。The type of the elements in the read-only span.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

要素が削除されるソース スパン。The source span from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされた読み取り専用スパン。The trimmed read-only span.

TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) 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.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<T> TrimEnd(ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements);
public static ReadOnlySpan<T> TrimEnd<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member TrimEnd : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), trimElements As ReadOnlySpan(Of T)) As ReadOnlySpan(Of T)

型パラメーター

T

読み取り専用スパン内の要素の型。The type of the elements in the read-only span.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

要素が削除されるソース スパン。The source span from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされた読み取り専用スパン。The trimmed read-only span.

注釈

trimElements空の場合、スパンは変更されずに返されます。If trimElements is empty, the span is returned unaltered.

TrimEnd<T>(ReadOnlyMemory<T>, T) TrimEnd<T>(ReadOnlyMemory<T>, T) TrimEnd<T>(ReadOnlyMemory<T>, T) TrimEnd<T>(ReadOnlyMemory<T>, T)

指定された要素が末尾に現れる箇所をすべて、読み取り専用メモリ領域から削除します。Removes all trailing occurrences of a specified element from a read-only memory region.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<T> TrimEnd(ReadOnlyMemory<T> memory, T trimElement);
public static ReadOnlyMemory<T> TrimEnd<T> (this ReadOnlyMemory<T> memory, T trimElement) where T : IEquatable<T>;
static member TrimEnd : ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> * 'T -> ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (memory As ReadOnlyMemory(Of T), trimElement As T) As ReadOnlyMemory(Of T)

型パラメーター

T

読み取り専用メモリ領域内の要素の型。The type of the elements in the read-only memory region.

パラメーター

memory
ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T>

要素が削除されるソース メモリ。The source memory from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされた読み取り専用メモリ領域。The trimmed read-only memory region.

TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) 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.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<T> TrimEnd(ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements);
public static ReadOnlyMemory<T> TrimEnd<T> (this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member TrimEnd : ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (memory As ReadOnlyMemory(Of T), trimElements As ReadOnlySpan(Of T)) As ReadOnlyMemory(Of T)

型パラメーター

T

読み取り専用メモリ領域内の要素の型。The type of the elements in the read-only memory region.

パラメーター

memory
ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T>

要素が削除されるソース メモリ。The source memory from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされた読み取り専用メモリ領域。The trimmed read-only memory region.

注釈

trimElements空の場合、メモリは変更されずに返されます。If trimElements is empty, the memory is returned unaltered.

TrimEnd<T>(Memory<T>, T) TrimEnd<T>(Memory<T>, T) TrimEnd<T>(Memory<T>, T) TrimEnd<T>(Memory<T>, T)

指定された要素が末尾に現れる箇所をすべて、文字メモリ領域から削除します。Removes all trailing occurrences of a specified element from a character memory region.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Memory<T> TrimEnd(Memory<T> memory, T trimElement);
public static Memory<T> TrimEnd<T> (this Memory<T> memory, T trimElement) where T : IEquatable<T>;
static member TrimEnd : Memory<'T (requires 'T :> IEquatable<'T>)> * 'T -> Memory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (memory As Memory(Of T), trimElement As T) As Memory(Of T)

型パラメーター

T

メモリ領域内の要素の型。The type of the elements in the memory region.

パラメーター

memory
Memory<T> Memory<T> Memory<T> Memory<T>

要素が削除されるソース メモリ。The source memory from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされたメモリ領域。The trimmed memory region.

TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) 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.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Memory<T> TrimEnd(Memory<T> memory, ReadOnlySpan<T> trimElements);
public static Memory<T> TrimEnd<T> (this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member TrimEnd : Memory<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> Memory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function TrimEnd(Of T As IEquatable(Of T)) (memory As Memory(Of T), trimElements As ReadOnlySpan(Of T)) As Memory(Of T)

型パラメーター

T

メモリ領域内の要素の型。The type of the elements in the memory region.

パラメーター

memory
Memory<T> Memory<T> Memory<T> Memory<T>

要素が削除されるソース メモリ。The source memory from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされたメモリ領域。The trimmed memory region.

注釈

trimElements空の場合、メモリは変更されずに返されます。If trimElements is empty, the memory is returned unaltered.

適用対象