13 lines
343 B
C#
13 lines
343 B
C#
namespace System;
|
|
|
|
public static class ArgumentNullOrEmptyException
|
|
{
|
|
public static void ThrowIfNullOrEmpty(string argument, [CallerArgumentExpression("argument")] string? paramName = null)
|
|
{
|
|
if (string.IsNullOrEmpty(argument))
|
|
{
|
|
throw new ArgumentNullException(paramName);
|
|
}
|
|
}
|
|
}
|