using System; using System.Collections.Generic; using System.Text; namespace Study.DelegateSeries.Core { /// /// 显示类型名 委托 /// /// 类型名 public delegate string ShowTypeNameDelegate(); /// /// 显示人名 委托 /// /// 人名 public delegate string ShowPersonName(); /// /// 计算器:计算委托 /// /// 参数A /// 参数B /// 计算结果 public delegate decimal CalculatorDelegate(decimal numberA,decimal numberB); /// /// 返回整形无参 委托 /// /// 整形数字 public delegate int IntegerDelegate(); }