اقرأ باللغة الإنجليزية تحرير

مشاركة عبر


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<byte> left, ReadOnlySpan<byte> right);

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

.NET 10 والإصدارات الأخرى
منتج الإصدارات
.NET 8, 9, 10

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<byte> left, ReadOnlySpan<char> right);

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

.NET 10 والإصدارات الأخرى
منتج الإصدارات
.NET 8, 9, 10

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<byte> right);

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

.NET 10 والإصدارات الأخرى
منتج الإصدارات
.NET 8, 9, 10

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

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

.NET 10 والإصدارات الأخرى
منتج الإصدارات
.NET 8, 9, 10