Serializing a Static Object in C#
Posted on 2004-10-20
I can't seem to find anything that is helping me out on this one anywhere on the net.
I have an object that consists of only static data. I do not initialize any instance of the class except within the class itself. However, I need to serialize the public or accessible values of this class, and then load them up again (back into the static object).
All references I can find show example of creating a new instance of an object, then serializing that. Instead of creating a new instance of an object, how can I just serialize all the static values of the class, and then deserialize them back into the class?