[dotnet] [bidi] AOT safe json converter for OptionalConverter#16963
[dotnet] [bidi] AOT safe json converter for OptionalConverter#16963nvborisenko merged 2 commits intoSeleniumHQ:trunkfrom
OptionalConverter#16963Conversation
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 |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
💥 What does this PR do?
Resolves AOT trimming warning for OptionalConverter.
🔄 Types of changes
PR Type
Bug fix
Description
Replace generic
JsonSerializercalls with AOT-safe type info overloadsUse
options.GetTypeInfo<T>()for deserialization and serializationResolves AOT trimming warnings in OptionalConverter
Diagram Walkthrough
File Walkthrough
OptionalConverter.cs
Replace generic JSON serializer calls with AOT-safe overloadsdotnet/src/webdriver/BiDi/Json/Converters/OptionalConverter.cs
Read()method to useoptions.GetTypeInfo()instead of genericJsonSerializer.Deserialize()Write()method to useoptions.GetTypeInfo()instead of genericJsonSerializer.Serialize()information to the serializer