public static void HasNoValue <T>(Optional <T> optional, string message = null, [CallerArgumentExpression("optional")] string name = null) { if (!optional.HasValue) { return; } Throw.ArgumentExceptionForHasNoValue(optional, message, name); }
public static void HasNoValue <T>(Optional <T> optional, string message = null, [CallerArgumentExpression("optional")] string name = null) { if (!optional.HasValue) { return; } Throw.ArgumentExceptionForHasNoValue(optional, message, name); }