class1.cs
来自「c#网络编程及应用-刘瑞新」· CS 代码 · 共 24 行
CS
24 行
using System;
class Method
{
public static int Add(int i,int j)
{
return i+j;
}
public static string Add(string s1,string s2)
{
return s1+s2;
}
public static long Add(long x)
{
return x+5;
}
static void Main()
{
Console.WriteLine(Add(1,2));
Console.WriteLine(Add("1","2"));
Console.WriteLine(Add(10));
Console.Read();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?