1
Reply

What should one do to make class serializable?

Samir Bhogayta

Samir Bhogayta

Jun 25, 2016
223
0

    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; }

    Samir Bhogayta
    June 25, 2016
    0