CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Author : Raju

C# – Classes – An Introduction

‘C#’ classes are code blocks that combine data and operations those work on the data. ‘C#’ classes enables Object Oriented Programming (OOP) concepts of encapsulation and abstraction. Encapsulation means combining data and the operations apply on the data together. Abstraction means hiding the details to outer world. ‘C#’ classes are created using the class keyword. Below […]

ASP.Net – Simple webpage

ASP.Net is a web framework for building websites. ASP.Net has been designed to be fully integrated with the .Net framework. ASP.Net works with Internet Information Services (IIS) to deliver the content. ASP.Net pages are with .aspx extension. ASP.Net files can contain server-side controls, client-side controls, and validation controls. Other than these, it supports placing HTML objects […]

.Net – Assemblies – Add a method

As of now we have created hello assembly and testapp application. testapp application will call the function SayHello (it just prints “Hello, World!” on the console) resides in hello assembly. We have created strong name for hello assembly and installed it into Global Assembly Cache (GAC). hello assembly is the shared assembly and any application […]

.Net – Assemblies – gacutil

We have created the hello.exe assembly in our previous article and installed it into Global Assembly Cache (GAC). Let’s look at where in GAC this assembly is installed. As we discussed in our previous article(s), GAC is the location where shared assemblies will be placed. Where this GAC is located? For the .Net version prior […]

.Net – Assemblies – How to Reference Assemblies?

We have created one simple private assembly hello.exe in our previous article. In this article, we will look at how to reference Assemblies into our programs and how to call methods in assemblies. Let’s create a simple program testapp.cs. Below is the code: // testapp.cs // using System; namespace CodeSteps { public class TestApp { […]

.Net – Assemblies – An Introduction

Assemblies are the self-describing building blocks of .Net-based applications. Assemblies contain Assembly manifest, which contains metadata information, contains a collection of data that describes the relationship between the elements in the assembly; Type metadata describing the exported types and methods; MSIL (Microsoft Intermediate Language) code that CLR (Common Language Runtime) executes; and a set of resources. All these parts […]

Delegates – Why and how we use them in C#?

Delegates in C# are the references to the methods, to call the methods indirectly. Delegates holds the address of the method(s); so, it will be easy to call methods through Delegates. But, why we use Delegates in C# and why can’t we always call methods directly? Good question. But, the answer is simple. As mentioned […]

Scroll to top