Posts by Pawan Shukla
Page 3 of 12

Initialization And Declaration Of Array In C#

Occasionally, you need to declare multiple variable of same data type. It is complex and time taking process. Just for an example, you have to declare 100 double type of variable then what would you do? Will you declare variable as like: double num1,num2,num3,num4,num5,num6,num7,num8…. num100; It is not a good  way to declare multiple variable of same data […]

Continue Reading →

C# Out Parameter

C# out parameter is like type of parameter that is declared with using out keyword. It is the like as reference parameter, that doesn’t create memory allocation. Usually, a method returns value with using return keyword. Unfortunately, a return modifier can return only one value at a time. Sometime, your C# program required to return multiple values from […]

Continue Reading →

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 } […]

Continue Reading →