-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[dotnet] [bidi] Add strongly-typed LocalValue.ConvertFrom
overloads
#15532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] [bidi] Add strongly-typed LocalValue.ConvertFrom
overloads
#15532
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Our big concern here is whether we should support nullable primitive types. I guess it is more philosophic question, from implementation perspective for us it doesn't matter. For end users it is also kind of "doesn't matter". |
Thank you, Mike! Let's move on and improve later when necessary. |
User description
Description
Add strongly-typed
LocalValue.ConvertFrom
overloadsMotivation and Context
Prevents users from being forced to guess which types we happen to support.
Types of changes
Checklist
PR Type
Enhancement
Description
Added strongly-typed
LocalValue.ConvertFrom
overloads for better type safety.Refactored
ConvertFrom
logic to delegate to specific type overloads.Introduced new methods for handling various data structures and primitives.
Improved code maintainability and readability by reducing duplication.
Changes walkthrough 📝
LocalValue.cs
Refactored and extended `LocalValue.ConvertFrom` functionality
dotnet/src/webdriver/BiDi/Modules/Script/LocalValue.cs
ConvertFrom
method.ConvertFrom
methods.collections.
structure.