Answer Posted / pijush
The enum keyword is used to declare an enumeration, a
distinct type consisting of a set of named constants called
the enumerator list. Every enumeration type has an
underlying type, which can be any integral type except
char. The default underlying type of the enumeration
elements is int. By default, the first enumerator has the
value 0, and the value of each successive enumerator is
increased by 1. For example:
Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
Is array reference type in c#?
Do events have return type c#?
What is the difference between dispose() and finalize() methods in c#?
What is xslt in c#?
What is difference between tostring() vs convert.tostring() vs (string) cast
Which is faster array or arraylist in c#?
Define method overloading in c#?
How does foreach loop work in c#?
Which is better javascript or c#?
What are different types of Delegates in C#?
Explain About DTS package
In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
Why do we overload constructors?
List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.
What are custom exceptions? Why do we need them?