📄 class1.cs
字号:
using System;
namespace ColorByVal
{
class Color
{
public Color()
{
this.red = 0;
this.green = 127;
this.blue = 255;
}
protected int red;
protected int green;
protected int blue;
public int GetRed() { return this.red; }
public int GetGreen() { return this.green; }
public int GetBlue() { return this.blue; }
}
class Class1
{
[STAThread]
static void Main(string[] args)
{
Color c = new Color();
int red = c.GetRed();
int green = c.GetGreen();
int blue = c.GetBlue();
Console.WriteLine("R={0}, G={1}, B={2}",
red, green, blue);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -