MemoryExtensions.EndsWith Méthode

Définition

Surcharges

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

Détermine si la fin de span correspond à la value spécifiée quand elle est comparée à l’aide de l’option comparisonType spécifiée.

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

Détermine si la séquence spécifiée apparaît à la fin d’une étendue en lecture seule.

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

Détermine si la séquence spécifiée apparaît à la fin d’une étendue.

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

Détermine si la fin de span correspond à la value spécifiée quand elle est comparée à l’aide de l’option comparisonType spécifiée.

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

Paramètres

span
ReadOnlySpan<Char>

Étendue source.

value
ReadOnlySpan<Char>

Séquence à comparer à la fin de l’étendue source.

comparisonType
StringComparison

Valeur d’énumération qui détermine comment span et value sont comparés.

Retours

Boolean

true si value correspond à la fin de span ; sinon, false.

S’applique à

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

Détermine si la séquence spécifiée apparaît à la fin d’une étendue en lecture seule.

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>;
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

Paramètres de type

T

Type de l’étendue.

Paramètres

span
ReadOnlySpan<T>

Étendue source.

value
ReadOnlySpan<T>

Séquence à comparer à la fin de l’étendue source.

Retours

Boolean

true si value correspond à la fin de span ; sinon, false.

S’applique à

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

Détermine si la séquence spécifiée apparaît à la fin d’une étendue.

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>;
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

Paramètres de type

T

Type de l’étendue.

Paramètres

span
Span<T>

Étendue source.

value
ReadOnlySpan<T>

Séquence à comparer à la fin de l’étendue source.

Retours

Boolean

true si value correspond à la fin de span ; sinon, false.

S’applique à