Define Constants and Enumerations in .NET - DOT.NET

Define Constants and Enumerations in .NET.

Constants are values which are known at compile time and do not change.

Module Module1
     Sub Main()
          Const abc = "100.00"
     End Sub
End Module

An enumeration is a named constant. Enum provides methods to:

- compare instances of classes,
- convert the instance values to strings,
- convert strings to an instance of a class,
- create instance of a specified enumeration and value
Collection in .NET - enumerate through the members of a collection - DOT.NET
There are various collection types in .NET which are used for manipulation of data. Collections are available in System.Collections namespace.....
Similarities and differences between arrays and collections - DOT.NET
The Array class is not part of the System.Collections namespaces. But an array is a collection, as it is based on the IList interface......
Describe the two kinds of multidimensional arrays in .NET - DOT.NET
There are two types of multidimensional arrays: Rectangular arrays, Jagged arrays....
Post your comment