views:

50

answers:

1

By "default" I mean just using the [Serializable] attribute on the class. I want to say that no, static fields would not be serialized, but I'm not exactly sure.

+4  A: 

No; static fields are not serialized.

.Net serialization serializes instances; static fields do not belong to an instance.

SLaks
Thanks, that's pretty much what I wanted to clarify!
Mark LeMoine