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

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.

主站蜘蛛池模板: 石门县| 拜泉县| 隆回县| 滕州市| 象山县| 清水县| 沙洋县| 平乡县| 安乡县| 鸡泽县| 湘阴县| 钦州市| 绥中县| 乌苏市| 泰宁县| 额敏县| 广宗县| 岑溪市| 西林县| 清河县| 芜湖县| 建水县| 北京市| 襄垣县| 建平县| 定州市| 南华县| 潢川县| 罗山县| 金坛市| 鄂托克前旗| 海南省| 卢氏县| 蕉岭县| 石棉县| 云霄县| 蓝田县| 诏安县| 鲁甸县| 新余市| 米脂县|