Skip to content
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

Investigate JSON Serialization/Deserialization in OLE #11368

Open
lonitra opened this issue May 14, 2024 · 0 comments
Open

Investigate JSON Serialization/Deserialization in OLE #11368

lonitra opened this issue May 14, 2024 · 0 comments
Assignees
Labels
area-Clipboard Issues related to Clipboard

Comments

@lonitra
Copy link
Member

lonitra commented May 14, 2024

A known way to serialize/deserialize data is by using System.Text.Json. We should investigate how we might be able to use JSON to serialize/deserialize clipboard/drag data. JSON serialization would occur in WinFormsDataObjectToNativeAdapter.SaveObjectToHGLOBAL and ensure enough information is provided to be able to deserialize on the other side in NativeDataObjectToWinFormsAdapter.ReadObjectFromHGLOBAL. As part of this investigation we should be mindful about how this would work in harmony with the other work that is being done in the area and ensuring serialization/deserialization across different process still works as it does today

Useful links:
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/how-to
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/deserialization

@lonitra lonitra added the untriaged The team needs to look at this issue in the next triage label May 14, 2024
@elachlan elachlan added the area-Clipboard Issues related to Clipboard label May 14, 2024
@lonitra lonitra self-assigned this May 14, 2024
@lonitra lonitra removed the untriaged The team needs to look at this issue in the next triage label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Clipboard Issues related to Clipboard
Projects
None yet
Development

No branches or pull requests

2 participants