dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.28k stars 954 forks source link

Add JSON Serialization Support for OLE #11527

Open lonitra opened 2 weeks ago

lonitra commented 2 weeks ago

Related: https://github.com/dotnet/winforms/issues/11368

This is a start to support JSON serialization in OLE scenarios. JsonData<T>: This is our wrapper class that holds the JSON serialized data along with the original type information. Note that the data that is being JSON serialized uses default JsonSerializer behavior. Users can follow the remarks of the public APIs if custom JSON serialization behavior is needed.

Public APIs:

Tests:

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 97.30640% with 8 lines in your changes missing coverage. Please review.

Project coverage is 74.45358%. Comparing base (5cefc3d) to head (3863b46). Report is 6 commits behind head on feature/clipboard.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## feature/clipboard #11527 +/- ## =========================================================== + Coverage 74.40876% 74.45358% +0.04482% =========================================================== Files 3032 3032 Lines 628254 628456 +202 Branches 46832 46827 -5 =========================================================== + Hits 467476 467908 +432 + Misses 157427 157195 -232 - Partials 3351 3353 +2 ``` | [Flag](https://app.codecov.io/gh/dotnet/winforms/pull/11527/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | Coverage Δ | | |---|---|---| | [Debug](https://app.codecov.io/gh/dotnet/winforms/pull/11527/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `74.45358% <97.30640%> (+0.04482%)` | :arrow_up: | | [integration](https://app.codecov.io/gh/dotnet/winforms/pull/11527/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `17.98662% <6.55738%> (-0.01570%)` | :arrow_down: | | [production](https://app.codecov.io/gh/dotnet/winforms/pull/11527/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `47.34297% <90.16393%> (+0.08100%)` | :arrow_up: | | [test](https://app.codecov.io/gh/dotnet/winforms/pull/11527/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `96.96877% <99.15254%> (+0.00122%)` | :arrow_up: | | [unit](https://app.codecov.io/gh/dotnet/winforms/pull/11527/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `44.32504% <90.16393%> (+0.08131%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet#carryforward-flags-in-the-pull-request-comment) to find out more.