views:

49

answers:

0

Hi!

I have a C# program in which the user adds multiple objects an editing Panel. These objects are all represented as a classes. Now I want the user to be able to save the scenario, so it can be loaded again.

for that I want to generate a Powershell script of each scénario , but my probléme is how to save diferent objects on Powershell , i tried to use serialization with XMLSerializer but I fail ,because i use a lot of dependant object who has Dictionaries and ListBoxs .

Is there some genereic save method I can use? Can you help me?