Skip to content

Commit

Permalink
Update release-notes/10.0/preview/preview1/winforms.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanya-Solyanik authored Feb 13, 2025
1 parent 35595cb commit fb90daf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release-notes/10.0/preview/preview1/winforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ For applications that still rely on `BinaryFormatter` for custom format serializ

1. *Replace obsolete APIs* Start by replacing the obsolete `GetData` methods with the new `TryGetData<T>`. This ensures type safety and avoids the risks associated with unbounded deserialization.

1. *Use JSON Serialization:* For complex types, use JSON serialization instead of BinaryFormatter, replace `SetData` with the new APIs like `SetDataAsJson`. The `TryGetData<T>` APIs are designed to handle common .NET types and JSON serialization.
1. *Use JSON Serialization:* For complex types, use JSON serialization instead of BinaryFormatter, replace `SetData` with the new APIs like `SetDataAsJson`. The `TryGetData<T>` APIs are designed to handle common .NET types and JSON serialization.


#### Best practices to consider when migrating to the new Clipboard APIs

Expand Down

0 comments on commit fb90daf

Please sign in to comment.