program.cs

来自「csharp课本的源代码」· CS 代码 · 共 24 行

CS
24
字号
using System;
using System.Collections.Generic;
using System.Text;
namespace MethodExample
{
    class Program
    {
        public int MyMethod()
        {
            Console.WriteLine("this is MyMethod.");
            int i = 10;
            return i;
        }
        static void Main()
        {
            Program method = new Program();
            int j = 5;
            j = method.MyMethod();
            Console.WriteLine("the value is {0}.", j);
            Console.ReadLine();
        }
    }
}

⌨️ 快捷键说明

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