📄 association.cs
字号:
namespace Opus6
{
using System;
[Copyright("Copyright (c) 2001 by Bruno R. Preiss, P.Eng."), Version("$Id: Association.cs,v 1.4 2001/09/14 18:54:06 brpreiss Exp $")]
public class Association : ComparableObject
{
public Association(IComparable key) : this(key, null)
{
}
public Association(IComparable key, object value)
{
this.key = key;
this.value = value;
}
public override int CompareTo(object obj)
{
Association association1 = obj as Association;
return this.key.CompareTo(association1.key);
}
public override int GetHashCode()
{
return this.key.GetHashCode();
}
public override string ToString()
{
string text1 = "Association {" + this.key;
if (this.value != null)
{
text1 = text1 + ", " + this.value;
}
return (text1 + "}");
}
public IComparable Key
{
get
{
return this.key;
}
}
public object Value
{
get
{
return this.value;
}
}
protected IComparable key;
protected object value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -