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

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.

主站蜘蛛池模板: 翼城县| 读书| 盐津县| 灯塔市| 吉木乃县| 孝义市| 塔城市| 万盛区| 封开县| 广东省| 抚松县| 玛沁县| 昭苏县| 射洪县| 信阳市| 垣曲县| 石楼县| 荥经县| 茶陵县| 云浮市| 盐池县| 西城区| 天台县| 邵阳市| 壶关县| 开平市| 安达市| 凤凰县| 穆棱市| 公安县| 泽普县| 启东市| 洛川县| 淮南市| 丰城市| 临夏市| 诸暨市| 梁平县| 弥勒县| 钟祥市| 和硕县|