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

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.

主站蜘蛛池模板: 新建县| 汉寿县| 六枝特区| 即墨市| 西畴县| 交城县| 高唐县| 岳池县| 日土县| 府谷县| 永宁县| 库伦旗| 武汉市| 吉首市| 黔西县| 嵊州市| 长丰县| 黄浦区| 莲花县| 北安市| 博客| 米林县| 台山市| 漳州市| 常州市| 梅河口市| 清新县| 永川市| 湘潭县| 荥阳市| 昌黎县| 金坛市| 洛川县| 古田县| 共和县| 英德市| 原平市| 西峡县| 松潘县| 乐亭县| 昆山市|