官术网_书友最值得收藏!

Adding delegates

In the first stage, you have to add delegates. While you could put these into a separate file, for our purposes let's just place them here. So, enter the following above the line beginning with public partial class...:

public delegate bool Compare(double x, double y);

Remember, delegates are function or method wrappers, actually. Then, directly below this line, enter the following:

public delegate double Multiply(double x, double y);

You can see here that we have two delegates. One returns a Boolean data type, and the other one returns a double data type.

主站蜘蛛池模板: 天津市| 龙里县| 濮阳县| 许昌市| 虎林市| 罗定市| 玉环县| 京山县| 桦甸市| 乡城县| 新乐市| 牡丹江市| 江永县| 石嘴山市| 灵璧县| 寻乌县| 临西县| 南岸区| 印江| 临澧县| 贵南县| 运城市| 嘉祥县| 和静县| 株洲县| 淮安市| 天长市| 浦北县| 玉树县| 城固县| 积石山| 铁岭县| 阿瓦提县| 香港| 东乡族自治县| 宁蒗| 康定县| 长沙县| 普兰店市| 沛县| 隆回县|