what is delegate and its types in c# code example Example: delegate declaration in c# public delegate int PerformCalculation(int x, int y);