Skip to main content

Posts

Delegate in C#

--> A delegate in C# is used to represent a function/(Method). --> A delegate can be used to represent one or more functions(s)/(Method). --> A delegate in C# is same as function pointer in C++. --> If a delegate representing O nly one Method then, it is known as Single Cast Delegate . --> If a delegate representing more than one method(s) then it is known as multi cast Delegate. --> If a delegate is representing a method without any name ( Anonymous Method ), then it is known as Anonymous Delegate. We Use 3 Steps to work with Delegate:- Creating a Delegate Instantiating the Delegate Invoking the Delegate Let us Consider a function like:->              public void Display(string S)              {                  //Code              } We use 3 steps of Delegate like:->     1.      Creati...
Recent posts
 C# Environment   In this chapter, we will discuss the tools required for creating C# programming. We have already mentioned that C# is part of .Net framework and is used for writing .Net applications. Therefore, before discussing the available tools for running a C# program, let us understand how C# relates to the .Net framework. The easiest way to get started with C#, is to use an IDE. An IDE stands (Integrated Development Environment) is used to edit and compile the .Net code developed by Microsoft. We can use of .Net framework to write the following types of application:- Console Application Windows Application Web Application IDE Install We are using Visual Studio Software to develop the application which is support too many language such as C#, VB.Net,  C++, Visual Basic, Jscript, COBOL,   All these languages can access the framework as well as communicate with each other. SO all the first we have need to install the software from its official Microsoft website...

What is C#

  C# is a programming language of .Net Framework. C# is pronounced as " C-Sharp ". It is an object-oriented programming language provided by Microsoft that runs on .Net Framework. By the help of C# programming language, we can develop different types of secured and robust applications: Window applications Web applications Distributed applications Web service applications Database applications etc. C# is approved as a standard by ECMA and ISO. C# is designed for CLI (Common Language Infrastructure). CLI is a specification that describes executable code and runtime environment. C# programming language is influenced by C++, Java, Eiffel, Modula-3, Pascal etc. languages. C# has roots from the C family, and the language is close to other popular languages like C++  and Java ..