Skip to content

Annotate nullable reference types in public APIs #1067

@daniel-lerch

Description

@daniel-lerch

Is your feature request related to a problem? Please describe.
I just came across a NullReferenceException in my app which uses nullable reference types because I did not read MimeKit's documentation properly and missed that a type can be null.

Describe the solution you'd like
I consider nullable reference types a great feature of C# that makes you as a developer think twice whether you can really omit a null check. In my opinion it would be great if MimeKit would at least add nullable attributes to its public API. It might even make sense to enable nullable reference types for the entire code base.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions