class1.cs

来自「csharp-solution,C#高效编程源码」· CS 代码 · 共 25 行

CS
25
字号
namespace Greetings
{
using System;

/// <summary>
///    This program prompts the user for their name and then greets them by name
/// </summary>
public class Greeter
{
    
    public static int Main(string[] args)
    {
        //
        // TODO: Add code to start application here
        //
		string myName;

		Console.WriteLine("Please enter your name");
		myName = Console.ReadLine();
		Console.WriteLine("Hello {0}", myName);
        return 0;
    }
}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?