C# Reference Type Variable

Posted in C#Tagged , , ,

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#

Posted in C#Tagged , ,

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# Static Method And Variables

Posted in C#Tagged , ,

In this article i am explaining what is static method and variable. When you create a function or declare a variable, it doesn’t create instance in a memory until you create object of class. But if you declare any function or variable with static modifier, it directly create instance in a memory and acts globally. The….

Calling Method Or Function (C#)

In this article i am explaining how to call method in C#.After creating function, you need to call it in Main() method to execute programe. In order to call method, you need to create object of  class, then followed bydot(.) operator you can call the method. If method is static, then there is no need….

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 }….

Function Parameter In C#

Parameter is the importaint part of function. However, it is optional but it makes C# function more dynamic than simple and easy function. There are two type offunction parameter in C#, Value type parameter and reference type parameter, that is discussed in lateral chapter in this section. C# parameter  just a way to passing value to….

What is class in C#

Posted in C#Tagged , ,

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….

Classes And Methods In C#

Posted in C#Tagged , ,

In this article i am explaining about class and method in C#. A class in C# is a blueprint or template that is used for define object. However there is no need to declare object of static class. A class consist member variables, functions, properties etc. A method is a block of code in C# programming…..

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

Posted in C#Tagged , ,

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….