MemoryExtensions.TrimEnd Método

Definición

Sobrecargas

TrimEnd(Memory<Char>)

Quita todos los caracteres de espacio en blanco finales de una región de memoria de caracteres.Removes all trailing whitespace characters from a character memory region.

TrimEnd(ReadOnlyMemory<Char>)

Quita todos los caracteres de espacio en blanco finales de una región de memoria de caracteres de solo lectura.Removes all trailing whitespace characters from a read-only character memory region.

TrimEnd(ReadOnlySpan<Char>)

Quita todos los caracteres de espacio en blanco finales de un intervalo de caracteres de solo lectura.Removes all trailing whitespace characters from a read-only character span.

TrimEnd(Span<Char>)

Quita todos los caracteres de espacio en blanco finales de un intervalo de caracteres.Removes all trailing whitespace characters from a character span.

TrimEnd(ReadOnlySpan<Char>, Char)

Quita todas las apariciones finales de un carácter especificado de un intervalo de solo lectura.Removes all trailing occurrences of a specified character from a read-only span.

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

Quita de un intervalo de caracteres de solo lectura todas las apariciones finales de un conjunto de caracteres especificados en un intervalo de solo lectura.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)

Quita todas las apariciones finales de un elemento especificado de un intervalo.Removes all trailing occurrences of a specified element from a span.

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

Quita todas las apariciones finales de un elemento especificado de un intervalo de solo lectura.Removes all trailing occurrences of a specified element from a read-only span.

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

Quita de un intervalo de solo lectura todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.Removes all trailing occurrences of a set of elements specified in a read-only span from a read-only span.

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

Quita de un intervalo todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.Removes all trailing occurrences of a set of elements specified in a read-only span from a span.

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

Quita de una región de memoria de solo lectura todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.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)

Quita todas las apariciones finales de un elemento especificado de una región de memoria de caracteres.Removes all trailing occurrences of a specified element from a character memory region.

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

Quita de una región de memoria todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.Removes all trailing occurrences of a set of elements specified in a read-only span from a memory region.

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

Quita todas las apariciones finales de un elemento especificado de una región de memoria de solo lectura.Removes all trailing occurrences of a specified element from a read-only memory region.

TrimEnd(Memory<Char>)

Quita todos los caracteres de espacio en blanco finales de una región de memoria de caracteres.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)

Parámetros

memory
Memory<Char>

Memoria de origen de la que se quitan los caracteres.The source memory from which the characters are removed.

Devoluciones

Memory<Char>

Región de memoria de caracteres recortada.The trimmed character memory region.

TrimEnd(ReadOnlyMemory<Char>)

Quita todos los caracteres de espacio en blanco finales de una región de memoria de caracteres de solo lectura.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)

Parámetros

memory
ReadOnlyMemory<Char>

Memoria de origen de la que se quitan los caracteres.The source memory from which the characters are removed.

Devoluciones

ReadOnlyMemory<Char>

Intervalo de caracteres de solo lectura recortado.The trimmed read-only character span.

TrimEnd(ReadOnlySpan<Char>)

Quita todos los caracteres de espacio en blanco finales de un intervalo de caracteres de solo lectura.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)

Parámetros

span
ReadOnlySpan<Char>

Intervalo de origen del que se quitan los caracteres.The source span from which the characters are removed.

Devoluciones

ReadOnlySpan<Char>

Intervalo de caracteres de solo lectura recortado.The trimmed read-only character span.

TrimEnd(Span<Char>)

Quita todos los caracteres de espacio en blanco finales de un intervalo de caracteres.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)

Parámetros

span
Span<Char>

Intervalo de origen del que se quitan los caracteres.The source span from which the characters are removed.

Devoluciones

Span<Char>

Intervalo de caracteres recortado.The trimmed character span.

TrimEnd(ReadOnlySpan<Char>, Char)

Quita todas las apariciones finales de un carácter especificado de un intervalo de solo lectura.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)

Parámetros

span
ReadOnlySpan<Char>

Intervalo de origen del que se quita el carácter.The source span from which the character is removed.

trimChar
Char

Carácter especificado que se va a buscar y quitar.The specified character to look for and remove.

Devoluciones

ReadOnlySpan<Char>

Intervalo de caracteres de solo lectura recortado.The trimmed read-only character span.

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

Quita de un intervalo de caracteres de solo lectura todas las apariciones finales de un conjunto de caracteres especificados en un intervalo de solo lectura.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)

Parámetros

span
ReadOnlySpan<Char>

Intervalo de origen del que se quitan los caracteres.The source span from which the characters are removed.

trimChars
ReadOnlySpan<Char>

Intervalo que contiene el conjunto de caracteres que se va a quitar.The span which contains the set of characters to remove.

Devoluciones

ReadOnlySpan<Char>

Intervalo de caracteres de solo lectura recortado.The trimmed read-only character span.

Comentarios

Si trimChars está vacío, se quitan los caracteres de espacio en blanco.If trimChars is empty, whitespace characters are removed instead.

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

Quita todas las apariciones finales de un elemento especificado de un intervalo.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>;
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)

Parámetros de tipo

T

Tipo de los elementos del intervalo.The type of the elements in the span.

Parámetros

span
Span<T>

Intervalo de origen del que se quita el elemento.The source span from which the element is removed.

trimElement
T

Elemento especificado que se va a buscar y quitar.The specified element to look for and remove.

Devoluciones

Span<T>

Intervalo recortado.The trimmed span.

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

Quita todas las apariciones finales de un elemento especificado de un intervalo de solo lectura.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>;
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)

Parámetros de tipo

T

Tipo de los elementos del intervalo de solo lectura.The type of the elements in the read-only span.

Parámetros

span
ReadOnlySpan<T>

Intervalo de origen del que se quita el elemento.The source span from which the element is removed.

trimElement
T

Elemento especificado que se va a buscar y quitar.The specified element to look for and remove.

Devoluciones

ReadOnlySpan<T>

Intervalo de solo lectura recortado.The trimmed read-only span.

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

Quita de un intervalo de solo lectura todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.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)

Parámetros de tipo

T

Tipo de los elementos del intervalo de solo lectura.The type of the elements in the read-only span.

Parámetros

span
ReadOnlySpan<T>

Intervalo de origen del que se quitan los elementos.The source span from which the elements are removed.

trimElements
ReadOnlySpan<T>

Intervalo que contiene el conjunto de elementos que se va a quitar.The span which contains the set of elements to remove.

Devoluciones

ReadOnlySpan<T>

Intervalo de solo lectura recortado.The trimmed read-only span.

Comentarios

Si trimElements está vacío, el intervalo se devuelve sin modificar.If trimElements is empty, the span is returned unaltered.

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

Quita de un intervalo todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.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)

Parámetros de tipo

T

Tipo de los elementos del intervalo.The type of the elements in the span.

Parámetros

span
Span<T>

Intervalo de origen del que se quitan los elementos.The source span from which the elements are removed.

trimElements
ReadOnlySpan<T>

Intervalo que contiene el conjunto de elementos que se va a quitar.The span which contains the set of elements to remove.

Devoluciones

Span<T>

Intervalo recortado.The trimmed span.

Comentarios

Si trimElements está vacío, el intervalo se devuelve sin modificar.If trimElements is empty, the span is returned unaltered.

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

Quita de una región de memoria de solo lectura todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.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)

Parámetros de tipo

T

Tipo de los elementos de la región de memoria de solo lectura.The type of the elements in the read-only memory region.

Parámetros

memory
ReadOnlyMemory<T>

Memoria de origen de la que se quitan los elementos.The source memory from which the elements are removed.

trimElements
ReadOnlySpan<T>

Intervalo que contiene el conjunto de elementos que se va a quitar.The span which contains the set of elements to remove.

Devoluciones

ReadOnlyMemory<T>

Región de memoria de solo lectura recortada.The trimmed read-only memory region.

Comentarios

Si trimElements está vacío, la memoria se devuelve sin modificar.If trimElements is empty, the memory is returned unaltered.

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

Quita todas las apariciones finales de un elemento especificado de una región de memoria de caracteres.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>;
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)

Parámetros de tipo

T

Tipo de los elementos de la región de memoria.The type of the elements in the memory region.

Parámetros

memory
Memory<T>

Memoria de origen de la que se quita el elemento.The source memory from which the element is removed.

trimElement
T

Elemento especificado que se va a buscar y quitar.The specified element to look for and remove.

Devoluciones

Memory<T>

Región de memoria recortada.The trimmed memory region.

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

Quita de una región de memoria todas las apariciones finales de un conjunto de elementos especificados en un intervalo de solo lectura.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)

Parámetros de tipo

T

Tipo de los elementos de la región de memoria.The type of the elements in the memory region.

Parámetros

memory
Memory<T>

Memoria de origen de la que se quitan los elementos.The source memory from which the elements are removed.

trimElements
ReadOnlySpan<T>

Intervalo que contiene el conjunto de elementos que se va a quitar.The span which contains the set of elements to remove.

Devoluciones

Memory<T>

Región de memoria recortada.The trimmed memory region.

Comentarios

Si trimElements está vacío, la memoria se devuelve sin modificar.If trimElements is empty, the memory is returned unaltered.

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

Quita todas las apariciones finales de un elemento especificado de una región de memoria de solo lectura.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>;
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)

Parámetros de tipo

T

Tipo de los elementos de la región de memoria de solo lectura.The type of the elements in the read-only memory region.

Parámetros

memory
ReadOnlyMemory<T>

Memoria de origen de la que se quita el elemento.The source memory from which the element is removed.

trimElement
T

Elemento especificado que se va a buscar y quitar.The specified element to look for and remove.

Devoluciones

ReadOnlyMemory<T>

Región de memoria de solo lectura recortada.The trimmed read-only memory region.

Se aplica a