Removes old comparable/comparers. (#31)
This commit is contained in:
parent
513e54f70e
commit
a45094f2dc
23 changed files with 95 additions and 249 deletions
|
|
@ -18,13 +18,14 @@
|
|||
*
|
||||
***************************************************************************/
|
||||
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
public static class Insensitive
|
||||
{
|
||||
public static IComparer Comparer{ get; } = CaseInsensitiveComparer.Default;
|
||||
public static IComparer<string> Comparer{ get; } = StringComparer.OrdinalIgnoreCase;
|
||||
|
||||
public static int Compare(string a, string b)
|
||||
{
|
||||
|
|
@ -68,4 +69,4 @@ namespace Server
|
|||
return a.IndexOf(b) >= 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue