ArgumentNullGuards API Documentation
Search Results for

    Show / Hide Table of Contents

    Class ArgumentNullGuardVerifier

    Verifies that a constructor or method has guards againsts null arguments for all its non-nullable parameters, meaning it throws an ArgumentNullException when called with a null argument for such parameters.

    Inheritance
    object
    ArgumentNullGuardVerifier
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: RentADeveloper.ArgumentNullGuards
    Assembly: RentADeveloper.ArgumentNullGuards.dll
    Syntax
    public static class ArgumentNullGuardVerifier

    Methods

    | Edit this page View Source

    Verify(LambdaExpression)

    Verifies that the constructor or method called in the expression validCallExpression has guards against null arguments for all its non-nullable parameters.

    Declaration
    public static void Verify(LambdaExpression validCallExpression)
    Parameters
    Type Name Description
    LambdaExpression validCallExpression

    The expression that calls the constructor or method to verify with valid arguments.

    Exceptions
    Type Condition
    ArgumentException
    • The body of the expression validCallExpression is neither a constructor call nor a method call.
    • The constructor or method called in the expression validCallExpression is not in a nullable enabled context.
    ArgumentNullException

    validCallExpression is null.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX