name.cs
来自「微软系列丛书<<C#2005从入门到精通>>」· CS 代码 · 共 33 行
CS
33 行
namespace Indexers
{
struct Name
{
public Name(string text)
{
this.name = text;
}
public string Text
{
get { return this.name; }
}
public override int GetHashCode()
{
return this.name.GetHashCode();
}
public override bool Equals(object other)
{
return (other is Name) && Equals((Name)other);
}
public bool Equals(Name other)
{
return this.name == other.name;
}
private string name;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?