Clipboard Debugging

Posted by Jake Pearson on Stack Overflow See other posts from Stack Overflow or by Jake Pearson
Published on 2010-04-01T16:04:07Z Indexed on 2010/04/02 0:03 UTC
Read the original article Hit count: 312

Filed under:
|
|

In the olden times of .NET 1.1, I could use the SoapFormatter to find out exactly what was getting serialized when I copied an object into the clipboard.

Fast forward to 2010, and I tried to do the same trick. It turns out the SoapFormatter does not support generics. Is there an alternative way to find out exactly what binary objects are serialized into the clipboard?

For example lets say I have this class:

public class Foo
{
   public List<Goo> Children;
}

If I send an instance of it to the clipboard, I would like to take a look at what is in the clipboard to see if it's children list was included or not.

Update: I was finally able to find the over copied field with the debugger. Visual Studio did it's job.

© Stack Overflow or respective owner

Related posts about c#

Related posts about clipboard