3 using System.Diagnostics.CodeAnalysis;
7 static class StringExtensions
10 public static bool IsNullOrEmpty([NotNullWhen(returnValue:
false)]
this ContentPath? p) => p?.IsPathNullOrEmpty() ??
true;
11 public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue:
false)]
this ContentPath? p) => p?.IsPathNullOrWhiteSpace() ??
true;
13 public static bool IsNullOrEmpty([NotNullWhen(returnValue:
false)]
this LocalizedString? s) => s is
null ||
string.IsNullOrEmpty(s.Value);
14 public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue:
false)]
this LocalizedString? s) => s is
null ||
string.IsNullOrWhiteSpace(s.Value);
15 public static bool IsNullOrEmpty([NotNullWhen(returnValue:
false)]
this RichString? s) => s is
null || s.NestedStr.IsNullOrEmpty();
16 public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue:
false)]
this RichString? s) => s is
null || s.NestedStr.IsNullOrWhiteSpace();