-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
namespace UniSky.Converters | ||
namespace UniSky.Converters; | ||
|
||
public class Static | ||
{ | ||
public class Static | ||
{ | ||
public static bool Equals(int a, int b) | ||
=> a == b; | ||
public static bool AtLeast(int a, int b) | ||
=> a >= b; | ||
public static bool Not(bool x) | ||
=> !x; | ||
public static bool NotNull(object x) | ||
=> x is not null; | ||
public static bool NullOrWhiteSpace(string s) | ||
=> string.IsNullOrWhiteSpace(s); | ||
public static bool NotNullOrWhiteSpace(string s) | ||
=> !string.IsNullOrWhiteSpace(s); | ||
} | ||
public static bool Equals(int a, int b) | ||
=> a == b; | ||
public static bool AtLeast(int a, int b) | ||
=> a >= b; | ||
public static bool Not(bool x) | ||
=> !x; | ||
public static bool NotNull(object x) | ||
=> x is not null; | ||
public static bool NullOrWhiteSpace(string s) | ||
=> string.IsNullOrWhiteSpace(s); | ||
public static bool NotNullOrWhiteSpace(string s) | ||
=> !string.IsNullOrWhiteSpace(s); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.