Silverlight Saving a Class Instance to Isolated Storage -


im wondering how go saving instance of class silverlight isolated storage. need know if possible class save isolated storage can have list of instances of class. here example of situation:

public class mysettingstostore      private mpropertya string     public property propertya() string             return mpropertya      end     set(byval value string)         mpropertya = value     end set     end property      private mlstofsubclass list(of mysubclass)     public property lstofsubclass() list(of mysubclass)             return mlstofsubclass      end     set(byval value list(of mysubclass))         mlstofsubclass = value     end set     end property end class  public class mysubclass     private mpropertya string     public property propertya() string             return mpropertya      end     set(byval value string)         mpropertya = value     end set     end property     private mpropertyb string     public property propertyb() string             return mpropertyb      end     set(byval value string)         mpropertyb = value     end set     end property   end class 

so on load of application want check if there instance of mysettingstostore in isolatedstorage if not create 1 , save (and update when needed), next time application started there instance in isolatedstorage load.

does know how go this? hope can help. in advance

one word: xmlserializer

to elaborate bit, can serialize class public properties stream (e.g. in isolated storage) , reverse process on startup load existing file in iso storage.

if property collection of other classes, stored , restored using xmlserializer.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -