Erweitertes Fehlerhandling
This commit is contained in:
@@ -88,10 +88,12 @@ namespace BS.Shared.Extensions
|
||||
return pString?.Replace("ẞ", "ß");
|
||||
}
|
||||
|
||||
public static bool IsNotNullOrWhiteSpace(this string pString)
|
||||
=> !pString.IsNullOrWhiteSpace();
|
||||
public static bool IsNullOrWhiteSpace(this string str)
|
||||
=> string.IsNullOrEmpty(str);
|
||||
public static string ToNullIfEmpty(this string str)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(str) ? null : str;
|
||||
}
|
||||
=> str.IsNullOrWhiteSpace() ? null : str;
|
||||
|
||||
public static string ToFormatFollows(this string str1, string str2, char seperator = ' ')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user