How to make class serializable? By Gaurav Agrawal | February 23, 2013 - 10:47 PM |October 12, 2020 .Net Programming 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; } Tagged .Net. Bookmark the permalink.