Edit

Share via


Ascii.Equals Method

Definition

Overloads

Equals(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Determines whether the provided buffers contain equal ASCII characters.

Equals(ReadOnlySpan<Byte>, ReadOnlySpan<Char>)

Determines whether the provided buffers contain equal ASCII characters.

Equals(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

Determines whether the provided buffers contain equal ASCII characters.

Equals(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

Determines whether the provided buffers contain equal ASCII characters.

Equals(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Source:
Ascii.Equality.cs
Source:
Ascii.Equality.cs

Determines whether the provided buffers contain equal ASCII characters.

public:
 static bool Equals(ReadOnlySpan<System::Byte> left, ReadOnlySpan<System::Byte> right);
public static bool Equals (ReadOnlySpan<byte> left, ReadOnlySpan<byte> right);
static member Equals : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool
Public Shared Function Equals (left As ReadOnlySpan(Of Byte), right As ReadOnlySpan(Of Byte)) As Boolean

Parameters

left
ReadOnlySpan<Byte>

The buffer to compare with right.

right
ReadOnlySpan<Byte>

The buffer to compare with left.

Returns

true if the corresponding elements in left and right are equal and ASCII; false otherwise.

Remarks

If both buffers contain equal, but non-ASCII characters, the method returns false.

Applies to

Equals(ReadOnlySpan<Byte>, ReadOnlySpan<Char>)

Source:
Ascii.Equality.cs
Source:
Ascii.Equality.cs

Determines whether the provided buffers contain equal ASCII characters.

public:
 static bool Equals(ReadOnlySpan<System::Byte> left, ReadOnlySpan<char> right);
public static bool Equals (ReadOnlySpan<byte> left, ReadOnlySpan<char> right);
static member Equals : ReadOnlySpan<byte> * ReadOnlySpan<char> -> bool
Public Shared Function Equals (left As ReadOnlySpan(Of Byte), right As ReadOnlySpan(Of Char)) As Boolean

Parameters

left
ReadOnlySpan<Byte>

The buffer to compare with right.

right
ReadOnlySpan<Char>

The buffer to compare with left.

Returns

true if the corresponding elements in left and right are equal and ASCII; false otherwise.

Applies to

Equals(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

Source:
Ascii.Equality.cs
Source:
Ascii.Equality.cs

Determines whether the provided buffers contain equal ASCII characters.

public:
 static bool Equals(ReadOnlySpan<char> left, ReadOnlySpan<System::Byte> right);
public static bool Equals (ReadOnlySpan<char> left, ReadOnlySpan<byte> right);
static member Equals : ReadOnlySpan<char> * ReadOnlySpan<byte> -> bool
Public Shared Function Equals (left As ReadOnlySpan(Of Char), right As ReadOnlySpan(Of Byte)) As Boolean

Parameters

left
ReadOnlySpan<Char>

The buffer to compare with right.

right
ReadOnlySpan<Byte>

The buffer to compare with left.

Returns

true if the corresponding elements in left and right are equal and ASCII; false otherwise.

Applies to

Equals(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

Source:
Ascii.Equality.cs
Source:
Ascii.Equality.cs

Determines whether the provided buffers contain equal ASCII characters.

public:
 static bool Equals(ReadOnlySpan<char> left, ReadOnlySpan<char> right);
public static bool Equals (ReadOnlySpan<char> left, ReadOnlySpan<char> right);
static member Equals : ReadOnlySpan<char> * ReadOnlySpan<char> -> bool
Public Shared Function Equals (left As ReadOnlySpan(Of Char), right As ReadOnlySpan(Of Char)) As Boolean

Parameters

left
ReadOnlySpan<Char>

The buffer to compare with right.

right
ReadOnlySpan<Char>

The buffer to compare with left.

Returns

true if the corresponding elements in left and right are equal and ASCII; false otherwise.

Applies to