[CSHARP-2208] Upgrade driver to use C# 8's nullable reference types feature Created: 07/Mar/18  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Vincent Kam (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.


Generated at Wed Feb 07 21:41:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.