No Picture

Deploying Programs in C#

December 4, 2017 Vashishth 0

Deploying projects in Visual Studio.NET is fairly straightforward.  Most of the process is automated for you through some convenient wizards so it doesn’t require much […]

No Picture

Convert Enum To String In C#

December 3, 2017 Vashishth 0

we can convert an enum to string by calling the ToString() method. class Program {     static void Main(string[] args)     {         Enum wkday = Weekday.Friday;         Console.WriteLine(“Enum string is ‘{0}’”, wkday.ToString());         Console.ReadKey();     }     // Enum     public enum Weekday     {         Monday = 0, Tuesday = 1, Wednesday = 2, Thursday = 4, Friday = 5, Saturday = 6, Sunday = 7     } […]

No Picture

Hashtable in C#

December 3, 2017 Vashishth 0

Creating a Hashtable The Hashtable class in C# represents a hashtable. The following code creates a Hashtable: private Hashtable hshTable = new Hashtable(); Adding Items to a Hashtable Add […]