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

Starting a thread

Now, with threads like this, you get a thread started on the next line as follows:

td.Start();

This will start the thread in its own little separate piece of processing, separate from the main program so to speak.

So, the big idea here is that this anonymous stuff is quite powerful. For example, you can build an anonymous function or method such as the preceding one we created. It runs, but it's not named, and basically, even when you make a new Thread object, you can make a delegate. In other words, it can do a bit of processing of its own and you don't have to put this off into other functions or anything like that.

主站蜘蛛池模板: 宁乡县| 甘泉县| 遂溪县| 祁东县| 砚山县| 永州市| 寿宁县| 耿马| 黄龙县| 建阳市| 德惠市| 隆林| 临湘市| 深水埗区| 赫章县| 常德市| 天镇县| 邯郸市| 海伦市| 自贡市| 崇文区| 瑞金市| 德兴市| 丽江市| 云林县| 临漳县| 偃师市| 府谷县| 布尔津县| 密云县| 吉木乃县| 襄垣县| 徐水县| 张北县| 正镶白旗| 兰考县| 靖江市| 堆龙德庆县| 黄山市| 镇平县| 遂溪县|