In the process of serializing .NET control objects to custom objects (i.e. MyControlObject) to another process for some purpose, I need to re-draw these controls in a custom manner. I need to know what type it is (button, textbox, combo box, TextField, Calander, ToolStrip, TtoolstripMenu, RichTextBox, TabControl or TreeView). I might need a sort of typeOf(RichTextBox) == RichTextBox to check.
In the process of serializing .NET control objects to custom objects (i.e. MyControlObject) to
Share
Yep:
or
will do it, but depending on what you do with each it will probably be nicer to encapsulate that into a switch statement like so: