- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 120字
- 2021-07-02 15:29:27
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.
推薦閱讀
- PWA入門與實踐
- Drupal 8 Blueprints
- Python測試開發入門與實踐
- GameMaker Programming By Example
- Learning Data Mining with R
- Learning Salesforce Einstein
- QGIS By Example
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- Java系統化項目開發教程
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- Getting Started with Python
- 零基礎看圖學ScratchJr:少兒趣味編程(全彩大字版)
- C#面向對象程序設計(第2版)
- Data Manipulation with R(Second Edition)
- CryENGINE Game Programming with C++,C#,and Lua