GetMoarFediverse/src/Extensions.cs
2022-12-21 02:11:57 +00:00

11 lines
322 B
C#

using System.Diagnostics.CodeAnalysis;
namespace GetMoarFediverse;
public static class Extensions
{
public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)]this string? s) => string.IsNullOrEmpty(s);
public static bool HasValue([NotNullWhen(returnValue: true)]this string? s) => !s.IsNullOrEmpty();
}