Erweitertes Fehlerhandling

This commit is contained in:
2024-12-06 11:40:53 +01:00
parent c6c4a20948
commit e360b80bd8
7 changed files with 38 additions and 18 deletions

View File

@@ -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 = ' ')
{