Skip to content

[🚀 Feature]: .NET: Support nullable reference types #14640

Closed
@RenderMichael

Description

@RenderMichael

Feature and motivation

Annotate the code for nullable reference type support. This would be massively beneficial for clarity and to prevent null reference exceptions, both within Selenium and for users.

Usage example

image
image

Affected namespaces

  • OpenQA.Selenium
  • OpenQA.Selenium.BiDi
  • OpenQA.Selenium.BiDi.Communication
    • Nested namespaces
  • OpenQA.Selenium.BiDi.Modules
    • Nested namespaces
  • OpenQA.Selenium.Chrome
  • OpenQA.Selenium.Chromium
  • OpenQA.Selenium.DevTools
    • Nested namespaces
  • OpenQA.Selenium.Edge
  • OpenQA.Selenium.Firefox
  • OpenQA.Selenium.Firefox.Internal
  • OpenQA.Selenium.IE
  • OpenQA.Selenium.Interactions
  • OpenQA.Selenium.Interactions.Internal
  • OpenQA.Selenium.Internal
  • OpenQA.Selenium.Internal.Logging
  • OpenQA.Selenium.Remote
  • OpenQA.Selenium.Safari
  • OpenQA.Selenium.Support.UI
  • OpenQA.Selenium.VirtualAuth
  • Handle nullability on CDP-generated types
  • Enable Nullable Reference Types in the .csproj and bazel

Metadata

Metadata

Assignees

Labels

A-needs-triagingA Selenium member will evaluate this soon!C-dotnet.NET BindingsI-enhancementSomething could be better

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions