Clipboard Copying objects to and from

前端 未结 5 1216
说谎
说谎 2020-12-01 21:09

I am trying to copy an object onto the windows clipboard and off again. My code is like this:

Copy on to clipboard:

Clipboard.Clear();
DataObject ne         


        
5条回答
  •  不知归路
    2020-12-01 21:54

    I had a similar scenario and after marking my class as serializable I got it to work.

    So try putting the Serializable attribute on your class Data.Sources.PromptResult.

提交回复
热议问题