Welcome, Guest Ohm namah shivoy
www.faqpanel.com
Home | ASP.Net | C-Sharp | Winforms | MS SQL | AJAX | XML | .Net Training*** | Search
Invite friends 
Extras 
VS Tips & Tricks
Top 10 .Net Tools
Special folders in ASP.Net
VS Find Combobox
 C-Sharp (C#) Interview Questions and Answers
What are Enumerations in C#?
An Enumeration is a user defined integer type which provides a way for attaching names to numbers, thereby increasing the comprehensibility of the code. The enum keyword automatically enumerates a list of words by assigning them values 0,1,2 and so on.

When you declare an enumeration, you specify a set of acceptable values that instance of that enumeration can contain. Not only that, but you can give the values user-friendly names. If, somewhere in your code, you attempt to assign a value that is not in the acceptable set of values to an instance of that enumeration, the compiler will flag an error. Eg.

enum shape{
Circle,
Square,
Triangle }

this can be written in one line as follows:
enum shape { Circle, Square,Triangle }
What is a pre-requisite for connection pooling?
Can I use MySQL with C#?
Does C# support jagged arrays?
Can I use DirectX in C#?
What is the partial classes?
When do you absolutely have to declare a class as abstract?
What is the static class?
Is it possible to have a static indexer in C#?
Can interface have static member? Yes or No?
What does the parameter Initial Catalog define inside Connection String?