What should one do to make class serializable?
Submitted by: AdministratorTo 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
[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
Top Dot Net Questions
☺ | ASP.NET interview questions only? |
☺ | What does mean by .NET framework? |
☺ | What is an Intermediate language? |
☺ | What’s SingleCall activation mode used for in .NET? |
☺ | How many languages .NET is supporting now? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |