📄 csharpclass.cs
字号:
using System;
using System.Windows.Forms;
namespace CSharpClassNameSpace
{
/// <summary>
/// CSharpClass 的摘要说明。
/// </summary>
public class CSharpClass
{
public CSharpClass()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public void SaySomething(string str)
{
MessageBox.Show(" 这是 C#实现的功能,传入的字串是:"+str);
}
}
public interface IMyShape
{
double Area();
}
public class CSharpRect :IMyShape
{
public float width;
public float height;
public double Area()
{
return width*height;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -