What should one do to make class serializable?

Submitted by: Administrator
To make a class serializable is to mark it with the Serializable attribute as follows.
[Serializable]
public class MyObject {
public int n1 = 0;
public int n2 = 0;
public String str = null;
}
Submitted by: Administrator

Read Online Dot Net Job Interview Questions And Answers