- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 47字
- 2021-07-03 00:11:56
How it works...
ValueTask<T> is a very nice addition to C# 7.0. Microsoft, however, does suggest that you benchmark the performance of Task<T> versus ValueTask<T> when doing additional optimizing of your methods. A simple optimization however would be to simply replace the instances of Task<T> with ValueTask<T>.
推薦閱讀
- Flask Web全棧開發(fā)實戰(zhàn)
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- iOS面試一戰(zhàn)到底
- 復雜軟件設計之道:領域驅動設計全面解析與實戰(zhàn)
- FreeSWITCH 1.8
- MySQL數據庫應用與管理 第2版
- Game Programming Using Qt Beginner's Guide
- Learning Unity 2D Game Development by Example
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Extreme C
- C#程序設計(項目教學版)
- Get Your Hands Dirty on Clean Architecture
- Mastering Object:Oriented Python(Second Edition)
- 自己動手構建編程語言:如何設計編譯器、解釋器和DSL
- Python面向對象編程(第4版)