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 ways to allocating space in memory. First is value type and second is Reference type. When you create int, char or float type variable, it creates value type memory allocation whereas when you create object of class, it creates reference type memory allocation.