อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


Ascii.EqualsIgnoreCase Method

Definition

Overloads

EqualsIgnoreCase(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

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

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

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

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

EqualsIgnoreCase(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

EqualsIgnoreCase(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

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

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

public static bool EqualsIgnoreCase (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 ignoring case considerations and ASCII; false otherwise.

Remarks

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

Applies to

.NET 9 และ .NET 8
ผลิตภัณฑ์ เวอร์ชัน
.NET 8, 9

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

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

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

public static bool EqualsIgnoreCase (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 ignoring case considerations and ASCII; false otherwise.

Applies to

.NET 9 และ .NET 8
ผลิตภัณฑ์ เวอร์ชัน
.NET 8, 9

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

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

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

public static bool EqualsIgnoreCase (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 ignoring case considerations and ASCII; false otherwise.

Applies to

.NET 9 และ .NET 8
ผลิตภัณฑ์ เวอร์ชัน
.NET 8, 9

EqualsIgnoreCase(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

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

Determines whether the provided buffers contain equal ASCII characters, ignoring case considerations.

public static bool EqualsIgnoreCase (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 ignoring case considerations and ASCII; false otherwise.

Applies to

.NET 9 และ .NET 8
ผลิตภัณฑ์ เวอร์ชัน
.NET 8, 9