Author Archives: Vikram Singh

About Vikram Singh

hello everyone my name is vikram singh . I have study in Rajasthan university . I will providing all the detail of computer and its use . I will providing latest technology also.

events in c#

Events In C# -: Events enable an object to notify other objects when something of interest occurs. The object that raises the event is called the publisher and the objects that handle the event are called subscribers. Event Publisher-: To demonstrate the use of events, a publisher will be created first. This will be a class that… Read More »

preprocessor directives in c#

Preprocessor directives in c#-: Preprocessor directives define symbols, undefined symbols, include source code, exclude source code, name sections of source code, and set warning and error conditions. The variety of preprocessor directives is limited compared with C++, and many of the C++ preprocessor directives are not available in C#. There is not a separate preprocessor or… Read More »

constant in c# language

Constant In c# Language-:  The constants refer to fixed values.The constant value can not change during the program execution . These fixed values are also called literals. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. A variable in C# can… Read More »

exception handling in c#

Exception Handling in c#-: Exception handling allows programmers to deal with unexpected situations that may occur in programs.As an example, consider opening a file using the StreamReader class in the System.IO namespace. To see what kinds of exceptions this class may throw, we can hover the cursor over the class name in Visual Studio. For instance,… Read More »

Exceptions in C#

Exception -: Exception handling helps applications trap and respond in a predictable and robust manner to exceptional events. This enhances the correctness of an application, which naturally improves customer satisfaction. Exception handling is an important ingredient of a robust application, but it is often an afterthought. We should proactively consider exception handling as an integral part… Read More »

delegates in c# programming

Delegates in c# programming-: A delegate is a type used to reference a method. This allows methods to be assigned to variables and passed as arguments. The delegate’s declaration specifies the method signature to which objects of the delegate type can refer. Delegates are by convention named with each word initially capitalized, followed by Delegate… Read More »

enum in c#

Enum in c# programming language-: An enumeration is a special kind of value type consisting of a list of named constants. To create one,we can use the enum keyword followed by a name and a code block containing a comma-separated list of constant elements. enum State { Run, Wait, Stop }; This enumeration type can be… Read More »