using System; using System.Collections.Generic; using System.Text; namespace Study.DelegateSeries.Core { public class Demo { public int Square(int number) { return number * number; } public int UseDelegate() { IntegerDelegate intDelegate = delegate () { return 5; }; var total = Square(intDelegate()); return total; } } }