Action

Difference between Action and Func in C#

Difference between Func<T> and Action<T> in C# and where to use them. Let’s suppose we have small program which returns a number using a delegate  static void Main(string[] args){MyCalculations del = MyCalculationsMethod;int value = del.Invoke(5); Console.WriteLine(“Result is: ” +value);}public static … Read More