Removes old comparable/comparers. (#31)

This commit is contained in:
Kamron Batman 2019-03-11 15:35:04 -07:00 • committed by GitHub
parent 513e54f70e
commit a45094f2dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 95 additions and 249 deletions

View file

@ -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;
}
}
}
}