c# .net core delegate code example Example: delegate declaration in c# public delegate int PerformCalculation(int x, int y);