@@ -12,7 +12,7 @@ namespace CodeJam
12
12
/// </summary>
13
13
[ PublicAPI ]
14
14
public class NaturalOrderStringComparer : IComparer < string >
15
- {
15
+ {
16
16
/// <summary>
17
17
/// Gets a <see cref="NaturalOrderStringComparer"/> object
18
18
/// that performs a string comparison using a "natural order" algorithm.
@@ -22,7 +22,7 @@ public class NaturalOrderStringComparer : IComparer<string>
22
22
/// that performs a string comparison using a "natural order" algorithm.
23
23
/// </returns>
24
24
[ NotNull ]
25
- public static NaturalOrderStringComparer Comparer => new NaturalOrderStringComparer ( false ) ;
25
+ public static readonly NaturalOrderStringComparer Comparer = new NaturalOrderStringComparer ( false ) ;
26
26
27
27
/// <summary>
28
28
/// Gets a <see cref="NaturalOrderStringComparer"/> object
@@ -33,7 +33,7 @@ public class NaturalOrderStringComparer : IComparer<string>
33
33
/// that performs a case-insensitive string comparison using a "natural order" algorithm.
34
34
/// </returns>
35
35
[ NotNull ]
36
- public static NaturalOrderStringComparer IgnoreCaseComparer => new NaturalOrderStringComparer ( true ) ;
36
+ public static readonly NaturalOrderStringComparer IgnoreCaseComparer = new NaturalOrderStringComparer ( true ) ;
37
37
38
38
/// <summary>
39
39
/// Gets a <see cref="Comparison{T}"/> delegate that performs a string comparison using a "natural order" algorithm.
@@ -42,7 +42,7 @@ public class NaturalOrderStringComparer : IComparer<string>
42
42
/// A <see cref="Comparison{T}"/> delegate that performs a string comparison using a "natural order" algorithm.
43
43
/// </returns>
44
44
[ NotNull ]
45
- public static Comparison < string > Comparision => ( a , b ) => Compare ( a , b , false ) ;
45
+ public static readonly Comparison < string > Comparision = ( a , b ) => Compare ( a , b , false ) ;
46
46
47
47
/// <summary>
48
48
/// Gets a <see cref="Comparison{T}"/> delegate that performs a case-insensitive
@@ -53,7 +53,7 @@ public class NaturalOrderStringComparer : IComparer<string>
53
53
/// string comparison using a "natural order" algorithm.
54
54
/// </returns>
55
55
[ NotNull ]
56
- public static Comparison < string > IgnoreCaseComparision => ( a , b ) => Compare ( a , b , true ) ;
56
+ public static readonly Comparison < string > IgnoreCaseComparision = ( a , b ) => Compare ( a , b , true ) ;
57
57
58
58
/// <summary>
59
59
/// true to ignore case during the comparison; otherwise, false.
0 commit comments