Tag Results  

What is Recursion | Recursive Function

Recursive function is a function that calls itself.   Let’s look at the following example,   using System; namespace ConsoleApp12 { class Program { static void Main(string[] args) { var factorialOf = factorial(5); Console.WriteLine(factorialOf); Console.ReadKey(); } public static int factorial(int input) { if (input == 1 || input == 0) return 1; else return input […]

Read More
What is ?

List<T> | ForEach

ForEach method is one of the methods of System.Collections.Generic. It creates a loop for the items of using list. It has no difference with foreach loop but using and syntax. Here is a few simple examples of using ForEach method for a list. Let’s take a look at these examples to make everything crystal clear.

Read More
Collection