[dotnet] Annotate nullability on capabilities types #15353
Merged
+42
−55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Description
Annotate nullability on capabilities types
Motivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Enhancement
Description
Enabled nullable reference types in multiple files for better null safety.
Updated method signatures and properties to support nullable types.
Simplified logic using null-coalescing operators and pattern matching.
Improved internal data structures with readonly collections and HashSet.
Changes walkthrough 📝
IHasCapabilities.cs
Enable nullable reference types in interface
dotnet/src/webdriver/IHasCapabilities.cs
IWritableCapabilities.cs
Enable nullable reference types in writable capabilities
dotnet/src/webdriver/IWritableCapabilities.cs
DesiredCapabilities.cs
Improve null safety in DesiredCapabilities
dotnet/src/webdriver/Remote/DesiredCapabilities.cs
ReadOnlyDesiredCapabilities.cs
Enhance null safety in ReadOnlyDesiredCapabilities
dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs
RemoteSessionSettings.cs
Improve null safety in RemoteSessionSettings
dotnet/src/webdriver/Remote/RemoteSessionSettings.cs