asp.net based app.
Q: What is serialization?
Ans : When we want to transport an object through network then we have to convert the object into a stream of bytes. The process of converting an object into a stream of bytes is called Serialization. For an object to be serializable, it should implement ISerialize Interface. De-serialization is the reverse process of creating an object from a stream of bytes.
Q: What is enum in C #?
Ans: enum is value type. enum keyword is used to declare Enumerator.
enum is set of related named constants often referred to as an enumerator list.
enum is primitive data type, i.e. user defined.
Enums are not for end-user, they are meant for developers.
Enums are strongly typed constant,i.e. an enum of one type may not be implicitly assigned to an enum of another type even though the underlying value of their members are the same.
enums make your code much more readable and understandable.
Enum values are fixed. Enum can be displayed as a string and processed as an integer.
The default underlying type of the enumeration element is int. By default, the first enumerator has the value 0, and the value of each successive enumerator is increased by 1.
An enum is used to create numeric constants in .NET framework. All the members of enum are of enum type. Their must be a numeric value for each enum type.
Exp: enum Days {Sat, Sun, Mon, Tue, Wed, Thu, Fri};
Click here to claim your Sponsored Listing.
Category
Contact the business
Telephone
Website
Address
New Delhi