dotnet / dotnet/winforms

Investigate JSON Serialization/Deserialization in OLE

Đang mở
#11,368 0 bình luận 2 reaction 1 người được giao Được @lonitra nhận Xem trên GitHub
area-Clipboard
Ngôn ngữ chính
C#
Star
4.9k
Fork
1.1k
Merge trung bình
20 giờ 23 phút
Pull request đã merge (30 ngày)
103

Mô tả

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 ](https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.ComposedDataObject.WinFormsDataObjectToNativeAdapter.cs#L322) and ensure enough information is provided to be able to deserialize on the other side in [NativeDataObjectToWinFormsAdapter.ReadObjectFromHGLOBAL](https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.ComposedDataObject.NativeDataObjectToWinFormsAdapter.cs#L176). 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.