Comparer.OrdinalIgnoreCase
Syntax
Comparer.OrdinalIgnoreCase(x as any, y as any) as number
About
Returns a case-insensitive comparer function which uses Ordinal rules to compare the provided values x
and y
.
A comparer function accepts two arguments and returns -1, 0, or 1 based on whether the first value is less than, equal to, or greater than the second.
Example 1
Using case-insensitive Ordinal rules, compare "Abc" with "abc". Note "Abc" is less than "abc" using Comparer.Ordinal
.
Usage
Comparer.OrdinalIgnoreCase("Abc", "abc")
Output
0
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho