[c#]代码库
#region 重载比较函数
public bool equals(System.Object o)
{
if (!(o.GetType() == typeof(System.Int32)))
{
return false;
}
int p = (int )o;
if (!(p.equals(this.m_val)))
{
return false;
}
return true;
}
public override bool Equals(System.Object o)
{
return equals(o);
}
public static bool operator ==(int lhs, int rhs)
{
return lhs.m_val == rhs.m_val;
}
public static bool operator !=(int lhs, int rhs)
{
return lhs.m_val != rhs.m_val;
}
public override int GetHashCode()
{
return m_val.GetHashCode();
}
#endregion