Skip to content

Add ValidatedNotNullAttribute to IsNotNull methods #12

@roryprimrose

Description

@roryprimrose

You can avoid CA1062 popping up by exposing a ValidatedNotNullAttribute in the library and then attributing it on the parameter in IsNotNull method. Probably won't work for expressions, but will work when the actual parameter is provided.

See http://esmithy.net/2011/03/15/suppressing-ca1062/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions