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

Upgrade driver to use C# 8's nullable reference types feature

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      C# 8 includes a nullable reference types feature that can be enabled, causing reference types to expect non-nullable by default. When enabled, compiler emits warnings when it detects null being assigned to something not explicitly defined as nullable. We should investigate this feature when C#8 is released to see if we can reap the advantages of fewer null pointer exception bugs without breaking customer code.

      See https://msdn.microsoft.com/en-us/magazine/mt829270 for more details about nullability and nullable reference types.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vincent.kam@mongodb.com Vincent Kam (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: