C# Array Class

There are various operations that can be done with an array such as creating, manipulating, sorting, searching, etc. This is done by the array class that provides various methods to perform mentioned operation in C#. Note: In C#, Array is …

Read moreC# Array Class

C# Params Array

Sometimes a situation may arise where you do not know how many parameters you want to pass to a method or you may want the method to accept n number of parameters at runtime. In such times params type array …

Read moreC# Params Array

C# Jagged Arrays

Jagged Arrays are also known as “array of arrays” that is because the elements are arrays themselves. Their dimensions and sizes may be different. Declaration of jagged array in C#. Jagged array can be declared and created in a following …

Read moreC# Jagged Arrays

C# Arrays

You must have learned C, C++, Java, etc and like any other programming language, an array in C# is also a group or a fixed-size sequential collection of data having the same data-type stored in a contiguous memory location. The are …

Read moreC# Arrays

C# Out Parameter

This method is Passing Parameters by Output. Unlike other methods that return only a single value from the method, the Out Parameter can return multiple values from a function. They are similar to reference type, except the data are transferred …

Read moreC# Out Parameter

C# Call By Value

This is passing parameters by Value. These value-type parameters in C# copy the actual parameters to the function (known as formal parameters) rather than referencing it. Whenever a method is called by passing value, a new storage location is created …

Read moreC# Call By Value

C# Methods

A method refers to a block of code (or a group of statements) that performs a specific task. It takes some inputs, does some computation based on that input and returns the output. They are also known as functions. The use …

Read moreC# Methods