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

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.

主站蜘蛛池模板: 昭平县| 教育| 蓬莱市| 息烽县| 罗源县| 兴文县| 和林格尔县| 老河口市| 巴林右旗| 丹棱县| 二手房| 四平市| 湛江市| 运城市| 温州市| 临清市| 会理县| 调兵山市| 甘洛县| 多伦县| 名山县| 尼玛县| 龙泉市| 大安市| 栾川县| 湖南省| 山东省| 三河市| 永德县| 年辖:市辖区| 扶绥县| 华容县| 长丰县| 阿尔山市| 石林| 郸城县| 大连市| 息烽县| 集贤县| 赤水市| 扶余县|