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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: API
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Vincent Kam (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: