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

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.

主站蜘蛛池模板: 南川市| 定南县| 青河县| 泉州市| 尉氏县| 宣城市| 霍山县| 大城县| 南木林县| 盐源县| 永春县| 施甸县| 北碚区| 安福县| 额尔古纳市| 澎湖县| 剑川县| 鄄城县| 那坡县| 香港 | 开化县| 阿鲁科尔沁旗| 和田县| 鹿邑县| 鸡泽县| 武穴市| 筠连县| 邮箱| 漯河市| 滨州市| 民勤县| 肇东市| 凤凰县| 温宿县| 三江| 黔江区| 北流市| 茂名市| 延安市| 太仆寺旗| 潼南县|