O
Ole
I'm trying to create a class acting to the user as if it is persistant. The
class fields are saved in a XML file and from within the class I call a
private 'SaveToFile' method that contains the line:
serializer.Serialize(writer, this); - that method works very well!
But when trying to load the class (using a 'LoadFromFile' method) I really
run into problems because the 'this' keyword representing the curret instant
is only read only.
Any help or idea is highly appriciated.
Thanks
Ole
class fields are saved in a XML file and from within the class I call a
private 'SaveToFile' method that contains the line:
serializer.Serialize(writer, this); - that method works very well!
But when trying to load the class (using a 'LoadFromFile' method) I really
run into problems because the 'this' keyword representing the curret instant
is only read only.
Any help or idea is highly appriciated.
Thanks
Ole