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

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.

主站蜘蛛池模板: 连城县| 鄢陵县| 淳化县| 邹平县| 疏附县| 延吉市| 定兴县| 黑河市| 汉寿县| 罗甸县| 波密县| 五台县| 滦南县| 齐齐哈尔市| 永兴县| 鱼台县| 晋江市| 常熟市| 突泉县| 鄂尔多斯市| 桦甸市| 赣榆县| 石嘴山市| 林芝县| 衡阳市| 镇平县| 依兰县| 根河市| 英德市| 涿州市| 吉木萨尔县| 宾阳县| 平湖市| 谢通门县| 博兴县| 尼勒克县| 东阿县| 洛川县| 喀喇沁旗| 澄江县| 宁夏|