Debugger Visualizer and "Type is not marked as serializable"

Posted by Andrey on Stack Overflow See other posts from Stack Overflow or by Andrey
Published on 2010-06-02T15:15:03Z Indexed on 2010/06/02 18:04 UTC
Read the original article Hit count: 380

I am trying to create a debugger visualizer that would show control hierarchy for any Control. It's done but I'm getting the exception "Type is not marked as serializable".

How do I overcome that? Control is a .NET Windows Forms framework type, I can't mark it as serializable.

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2008