Copying to the clipboard

How could I go about copying the data of a class, that means all of the variables in a class at once to the clipboard and then reading class information from the clipboard. What is the most efficient method? Thanks

Have the class write out its data in a ToXML method, then have a corresponding FromXML method.

Thanks. Was hoping there was a faster method. But I am happy with that.


Do you know if you can make a for each loop that loops through all of the variables within a certain class.

Introspection might help you.