- .NET Standard 2.0 Cookbook
- Fiqri Ismail
- 186字
- 2021-06-25 22:11:30
How it works...
Let us take a quick look at what we did in the previous recipe. In steps 1 to 4, we created a C#-based console application. The skeleton for a console application already comes with Visual Studio as a template. Giving a proper name to your project and a location is a good habit. These things will help you to track down your project easily for future use. In step 5, we just make sure the default console application template works fine and that there are no surprises waiting for us before doing any actual coding.
In step 6, we created a static method that takes a string parameter and returns a message with that parameter; this is called String Interpolation. It's a new feature introduced in C# 6.0 and can be used instead of the traditional string.format() method. Step 7 uses that method inside the main method. As in a normal console application, Console.ReadLine() will wait till any key is pressed before exiting. Finally, in step 9, we debug the code to check that everything works fine and as expected.
- 解構(gòu)產(chǎn)品經(jīng)理:互聯(lián)網(wǎng)產(chǎn)品策劃入門寶典
- Python 3.7網(wǎng)絡(luò)爬蟲快速入門
- Learning PostgreSQL
- Software Testing using Visual Studio 2012
- ASP.NET Core 2 and Vue.js
- Instant Typeahead.js
- 編譯系統(tǒng)透視:圖解編譯原理
- Unity 2018 Shaders and Effects Cookbook
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)(第二版)
- 實(shí)驗(yàn)編程:PsychoPy從入門到精通
- Spring Boot從入門到實(shí)戰(zhàn)
- Jakarta EE Cookbook
- 前端Serverless:面向全棧的無服務(wù)器架構(gòu)實(shí)戰(zhàn)
- React Native -Building Mobile Apps with JavaScript
- HTML+CSS+JavaScript前端開發(fā)(慕課版)