[dotnet] [bidi] Convert RemoteValue to well-known types#17027
[dotnet] [bidi] Convert RemoteValue to well-known types#17027nvborisenko merged 10 commits intoSeleniumHQ:trunkfrom
Conversation
Review Summary by QodoEnhance RemoteValue type conversion with comprehensive support
WalkthroughsDescription• Refactored RemoteValue.ConvertTo<T>() to support comprehensive type conversions • Added implicit operators for bool, int, long, string conversions • Implemented array and generic list conversion support with reflection • Added comprehensive test suite covering all conversion scenarios File Changes1. dotnet/src/webdriver/BiDi/Script/RemoteValue.cs
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||||||
|
@RenderMichael please quickly take a look whether it is good direction. |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||||||
Code Review by Qodo
1. Invoke wraps BiDiException
|
|
Long awaited feature. Let's move on with some useful primitives. |
There was a problem hiding this comment.
Pull request overview
Adds richer .NET-side conversions for BiDi Script.RemoteValue, enabling consumers to convert returned BiDi values into common CLR primitive/collection types.
Changes:
- Introduces
RemoteValue.ConvertTo<TResult>()and updates implicit conversions to delegate to it. - Adds array and generic enumerable/list conversions for
ArrayRemoteValue. - Adds unit tests covering conversions for primitives, nulls, arrays, and common collection interfaces.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| dotnet/src/webdriver/BiDi/Script/RemoteValue.cs | Implements ConvertTo<TResult>(), updates implicit operators, and adds array/list conversion helpers. |
| dotnet/test/common/BiDi/Script/RemoteValueConversionTest.cs | New unit tests validating conversions from RemoteValue to CLR primitives and collections. |
🔗 Related Issues
Contribues to #16719
💥 What does this PR do?
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes