using System.Runtime.CompilerServices;
public static void Main()
static void TestMethod(string inputValue)
inputValue.ThrowIfNullOrEmpty();
Console.WriteLine("Got: " + inputValue);
public static void ThrowIfNullOrEmpty(
[CallerArgumentExpression("value")] string expression = null)
if (string.IsNullOrEmpty(value))
throw new ArgumentException(paramName: expression, message: $"{expression} cannot be null or empty!");