What is the usage of Enumeration in C# Programming and is it good to use or not ?



What is the usage of Enumeration in C# Programming and is it good to use or not ?..

Answer / Saurabh

"Enumerations, or enums, are a value type used to provide named values for a set of related constants. They can make your code more readable by replacing numerical values with meaningful names. Whether or not to use enumerations depends on the specific situation."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is a decimal an integer?

1 Answers  


Can a class be protected in c#?

1 Answers  


Can firstordefault return null?

1 Answers  


What is get set in c#?

1 Answers  


Is is possible to force garbage collector to run?

1 Answers  


Explain about Threading Types.

1 Answers   DELL,


if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

1 Answers   Siebel Systems,


Is string reference type / value type?

56 Answers   Accenture, Microsoft, Siemens,


Is string a primitive data type in c#?

1 Answers  


How does the XmlSerializer work ?

1 Answers  


Can you mark static constructor with access modifiers?

1 Answers  


What is c-sharp (c#)?

1 Answers  


Categories