Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2789

Annotate methods with nullability post-conditions

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • Fully Compatible

      In order to support codebases that have been upgraded to use C# 8´s new nullable ref types feature, it would be great if you could annotate all methods that may return null, such as FirstOrDefaultAsync, with [return: MaybeNull].

      See https://docs.microsoft.com/en-us/dotnet/csharp/nullable-attributes#specify-post-conditions-maybenull-and-notnull for more information.

            Assignee:
            Unassigned Unassigned
            Reporter:
            knoopjohn@gmail.com John Knoop
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: