MemoryExtensions.EndsWith Método

Definición

Sobrecargas

EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison)

Determina si el final de span coincide con el objeto value especificado cuando se comparan usando la opción comparisonType especificada.Determines whether the end of the span matches the specified value when compared using the specified comparisonType option.

EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determina si la secuencia especificada aparece al final de un intervalo de solo lectura.Determines whether the specified sequence appears at the end of a read-only span.

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

Determina si la secuencia especificada aparece al final de un intervalo.Determines whether the specified sequence appears at the end of a span.

EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison)

Determina si el final de span coincide con el objeto value especificado cuando se comparan usando la opción comparisonType especificada.Determines whether the end of the span matches the specified value when compared using the specified comparisonType option.

public:
[System::Runtime::CompilerServices::Extension]
 static bool EndsWith(ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType);
public static bool EndsWith (this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType);
static member EndsWith : ReadOnlySpan<char> * ReadOnlySpan<char> * StringComparison -> bool
<Extension()>
Public Function EndsWith (span As ReadOnlySpan(Of Char), value As ReadOnlySpan(Of Char), comparisonType As StringComparison) As Boolean

Parámetros

span
ReadOnlySpan<Char>

Intervalo de origen.The source span.

value
ReadOnlySpan<Char>

Secuencia que se va a comparar con el final del intervalo de origen.The sequence to compare to the end of the source span.

comparisonType
StringComparison

Valor de enumeración que determina cómo se comparan span y value.An enumeration value that determines how span and value are compared.

Devoluciones

Boolean

true si value coincide con la propiedad span; de lo contrario, false.true if value matches the end of span; otherwise, false.

EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determina si la secuencia especificada aparece al final de un intervalo de solo lectura.Determines whether the specified sequence appears at the end of a read-only span.

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

Parámetros de tipo

T

Tipo del intervalo.The type of the span.

Parámetros

span
ReadOnlySpan<T>

Intervalo de origen.The source span.

value
ReadOnlySpan<T>

Secuencia que se va a comparar con el final del intervalo de origen.The sequence to compare to the end of the source span.

Devoluciones

Boolean

true si value coincide con la propiedad span; de lo contrario, false.true if value matches the end of span; otherwise, false.

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

Determina si la secuencia especificada aparece al final de un intervalo.Determines whether the specified sequence appears at the end of a span.

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

Parámetros de tipo

T

Tipo del intervalo.The type of the span.

Parámetros

span
Span<T>

Intervalo de origen.The source span.

value
ReadOnlySpan<T>

Secuencia que se va a comparar con el final del intervalo de origen.The sequence to compare to the end of the source span.

Devoluciones

Boolean

true si value coincide con la propiedad span; de lo contrario, false.true if value matches the end of span; otherwise, false.

Se aplica a