Habanero.Smooth.Guard.AgainstNull C# (CSharp) Method

AgainstNull() public static method

Checks an argument to ensure it isn't null.
is a null reference.
public static AgainstNull ( object argumentValue, string argumentName ) : void
argumentValue object The argument value to check.
argumentName string The name of the argument.
return void
        public static void AgainstNull(object argumentValue, string argumentName)
        {
            if (argumentValue == null)
            {
                throw new ArgumentNullException(argumentName);
            }
        }