
Q JScript® seems to automatically add serializable to classes. When I compile the class shown in Figure 1, it becomes serializable although it is not declared to be so. Why is this?
A You're right, JScript automatically adds serializable to classes. It's by design. In JScript, unlike in C#, a class is serializable by default. If you don't want your class to be serializable, then do this:
|