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

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.

主站蜘蛛池模板: 岑溪市| 普兰店市| 邛崃市| 普宁市| 宣武区| 陆河县| 郸城县| 紫云| 新宁县| 文化| 林口县| 麻江县| 满洲里市| 亳州市| 长兴县| 宾阳县| 资阳市| 荥阳市| 亚东县| 诸城市| 边坝县| 平昌县| 墨玉县| 安陆市| 岢岚县| 宁强县| 华阴市| 贵定县| 永丰县| 吉林省| 澎湖县| 兰州市| 房产| 富民县| 富锦市| 巫山县| 沙雅县| 高密市| 和顺县| 新邵县| 青铜峡市|