📄 class1.cs
字号:
using System;
namespace RelOpRefs
{
class NumericTest
{
protected int i;
public NumericTest(int i)
{
this.i = i;
}
}
class RelOpRefsApp
{
[STAThread]
static void Main(string[] args)
{
NumericTest test1 = new NumericTest(42);
NumericTest test2 = new NumericTest(42);
Console.WriteLine("{0}", test1 == test2);
Decimal d1 = new Decimal(42);
Decimal d2 = new Decimal(42);
Console.WriteLine("{0}", d1.Equals(d2));
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -