Visual C# 2010 Recipes A Problem-Solution Approach 代码一 —— Create a Console Application from the Command Line
<br />ConsoleUtils.cs<br />using System;namespace Apress.VisualCSharpRecipes.Chapter01{ public class ConsoleUtils { // A method to display a prompt and read a response from the console. public static string ReadString(stri