C# Enumeration

Enumeration use for to assign multiple constant integral values to a single variable. Enumeration improves code clarity and makes program easier to maintain easy way. Enumeration in C# also provides more security by better error-checking technology and compiler warnings. An enumeration can be defined using enum keyword. In enumeration, you can define special set of […]

Continue Reading →
 

C# Lock Statement

In this article i am explaining about lock statement in c#. The lock statement handle lock segment as a critical section and lock the object during the execution of program from other thread. Once the execution is completed it releases the lock and frees objects. Example: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace […]

Continue Reading →