public static bool IsNullOrWhiteSpace(this string? value)
{
// https://referencesource.microsoft.com/#mscorlib/system/string.cs,55e241b6143365ef
if (value == null) return true;
for (int i = 0; i < value.Length; i++)
{
if (!char.IsWhiteSpace(value[i])) return false;
}
return true;
}
}