20240301-1
This commit is contained in:
parent
16b04e0c29
commit
e89f2b33e3
@ -12,7 +12,7 @@ public static class GuidExtensions
|
||||
/// </summary>
|
||||
/// <param name="g">Guid или null</param>
|
||||
/// <returns>Guid пуст (null) или равен Guid.Empty</returns>
|
||||
public static bool IsNullOrEmpty ([NotNullWhen(true)] this Guid? g) => g == null || g == Guid.Empty;
|
||||
public static bool IsNullOrEmpty ([NotNullWhen(false)] this Guid? g) => g == null || g == Guid.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Проверяет Guid на пустоту
|
||||
|
@ -12,5 +12,5 @@ public static class StringExtensions
|
||||
/// </summary>
|
||||
/// <param name="s">Строка</param>
|
||||
/// <returns>Строка пуста (null) или содержит только пробелы</returns>
|
||||
public static bool IsNullOrWhiteSpace ([NotNullWhen(true)] this string? s) => s == null || s.Trim().Length == 0;
|
||||
public static bool IsNullOrWhiteSpace ([NotNullWhen(false)] this string? s) => s == null || s.Trim().Length == 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user