NET - What are the Enumerations? How to create Enumerations in C#.NET?

What are the Enumerations? How to create Enumerations in C#.NET?

- An enumeration is a special type of collection in the .NET Framework that can contain lots of named constants.

- It is a set of named integer constants.

- The 'enum' keyword is used to declare an enumeration.

- These are the strongly types constants.

- Enumerations are value data type.

- It contains its own values and cannot inherit or cannot pass inheritance.

Example:
public enum IDSTablesType
{
   SYSTEM, BOARD, CHIP, BLOCK, REGGROUP,REGISTER
}
NET - Define Stream class in .NET. Explain with an example using C#.NET?
Define Stream class in .NET. Explain with an example using C#.NET? - The Stream class gives a view of various types of input and output. Streams involve three fundamental operations:......
NET - Explain common Stream types in Net.
Explain common Stream types in Net - FileStream, MemoryStream, StreamReader, StreamWriter.....
NET - Explain how to compress data with a compression Stream
Explain how to compress data with a compression Stream - Compression streams write to another stream.......
Post your comment