[backend] Fix code cleanup rules (and build)
This commit is contained in:
parent
8e2a116ad9
commit
17884c4975
2 changed files with 64 additions and 12 deletions
|
@ -21,22 +21,14 @@ public static class StringExtensions {
|
||||||
[SuppressMessage("ReSharper", "StringCompareToIsCultureSpecific")]
|
[SuppressMessage("ReSharper", "StringCompareToIsCultureSpecific")]
|
||||||
public static class ProjectableStringExtensions {
|
public static class ProjectableStringExtensions {
|
||||||
[Projectable]
|
[Projectable]
|
||||||
public static bool IsLessThan(this string a, string b) {
|
public static bool IsLessThan(this string a, string b) => a.CompareTo(b) < 0;
|
||||||
return a.CompareTo(b) < 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
[Projectable]
|
[Projectable]
|
||||||
public static bool IsLessOrEqualTo(this string a, string b) {
|
public static bool IsLessOrEqualTo(this string a, string b) => a.CompareTo(b) <= 0;
|
||||||
return a.CompareTo(b) <= 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
[Projectable]
|
[Projectable]
|
||||||
public static bool IsGreaterThan(this string a, string b) {
|
public static bool IsGreaterThan(this string a, string b) => a.CompareTo(b) > 0;
|
||||||
return a.CompareTo(b) > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
[Projectable]
|
[Projectable]
|
||||||
public static bool IsGreaterOrEqualTo(this string a, string b) {
|
public static bool IsGreaterOrEqualTo(this string a, string b) => a.CompareTo(b) >= 0;
|
||||||
return a.CompareTo(b) >= 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue