Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Clipboard.SetDataObject fails for user defined clipboard formats #415
I have a fix and XUnit test which I will issue a pull request for shortly.
While testing SpreadsheetGear for Windows Forms on .NET Core 3 we found that Clipboard.SetDataObject fails for custom clipboard types. This is apparently due to Span work in this checkin which removed the necessary 'stream.Position = 0' before reading from the stream:
Uninitialized data gets written to the clipboard.
.NET objects get serialized to clipboard.