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

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.

主站蜘蛛池模板: 上高县| 高青县| 蛟河市| 孝昌县| 延津县| 大庆市| 民和| 东方市| 平泉县| 濮阳县| 峨眉山市| 汝州市| 仁布县| 乌拉特中旗| 图们市| 额尔古纳市| 宜兰市| 宁阳县| 舟曲县| 九台市| 镇江市| 唐河县| 申扎县| 乌恰县| 连南| 丹东市| 泰和县| 通道| 井陉县| 伊金霍洛旗| 荆州市| 康定县| 独山县| 罗甸县| 丘北县| 施秉县| 旺苍县| 阳东县| 内黄县| 黑龙江省| 大宁县|