📄 example 1.cs
字号:
using System;
namespace Example_1
{
/// <summary>
/// 这个类演示读/写属性的用法
/// </summary>
///
public class VideoStore
{
private int vcd = 0;
public int VCD
{
get
{
return vcd;
}
set
{
vcd=value;
}
}
}
class Class1
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
//
VideoStore objVideo = new VideoStore();
objVideo.VCD = 400;
Console.WriteLine("VCD 的价格 = {0}", objVideo.VCD);
//
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -