C# Reference Type Variable

In this article i am explaining about reference type variable in C#. The Reference type variable is type of variable in C# that maintain the reference of memory address instead of value. class, interface, delegate, array is reference type. When you create object of any class with new keyword, a space is created in the managed heap

Value Type Parameter In C#

In this article i am explaining about parameter in C#. As mentioned previous chapter, there are two types of parameter that can be use in function. First  is Value type parameter and second is reference type parameter. Before understanding both type of parameter in C#, you will have to understand Value type and Reference type. In two

C# Method Declaration

In this article i am explaining about Method in C#. Method is the production block of object-oriented programming. It combines related code together and makes program easier. In C# method declaration, you can declare method by following way: Syntax: <Access Specifier> <Return Type> <Method Name>(Parameter list) {     Body } Example: public void Hello() {       Body }

What is class in C#

Class is a template, declaration or blueprint that is used for clarify object. It summarize variable members, functions, structure, properties and many more part. It is the basic building block of object oriented programming. In order to create class, the class keyword is used. Syntex class Print   {   } After creating class, you can use it by

Concepts Of Encapsulation And Abstraction

Encapsulation and abstraction is important part of C sharp programming that is very used for hide complex code from unauthorized users and shows only relevant information of users. What is encapsulation? Encapsulation is the way of hiding irrelevant data from the users. To understand encapsulation, consider an example of computer . Whenever you buy a computer, you

C# Foreach Loop

In this article i am explaining about foreach loop in C#. foreach loop is a different type of looping constructs in C# programming that doesn’t includes initialization, termination and increment/decrement characteristics. It uses collection to take value one by one and then processes them. Syntax: foreach (string name in arr) { } Example: using System; using