Two lines are not equal. The last letter is different.
, IgnoreCase -1, OrdinalIgnoreCase 1:
OrdinalIgnoreCaseIgnoreCase .
, IgnoreCase "" , , , , .
, " " .
, InvariantCulture :
foreach (CompareOptions i in Enum.GetValues(new CompareOptions().GetType()).OfType<CompareOptions>())
Console.WriteLine( string.Compare("محسنی", "محسني", CultureInfo.InvariantCulture, i) + "\t : " + i );
1 IgnoreCase OrdinalIgnoreCase.
:
- . .
foreach(var value in strings.Select(x => x.ToCharArray().Select(y => (int)y)))
Console.WriteLine(value);
:
1605
1581
1587
1606
1610 // <-- "yeh": ي
1606
1605
1581
1587
1606
1740 // <-- "farsi yeh": ی
1606
, , , , .