mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 12:25:26 +00:00
f555d60a7a
svn path=/trunk/gtk-sharp/; revision=23042
22 lines
777 B
Plaintext
22 lines
777 B
Plaintext
//
|
|
// To avoid ValueType.Equals which is slow
|
|
//
|
|
public override int GetHashCode ()
|
|
{
|
|
return Stamp ^ (int) _user_data ^ (int) _user_data2 ^ (int) _user_data3;
|
|
}
|
|
|
|
public override bool Equals (object o)
|
|
{
|
|
if (o == null)
|
|
return false;
|
|
|
|
if (!(o is TreeIter))
|
|
return false;
|
|
TreeIter ti = (TreeIter) o;
|
|
return ti.Stamp == Stamp &&
|
|
ti._user_data == _user_data &&
|
|
ti._user_data2 == _user_data2 &&
|
|
ti._user_data3 == _user_data3;
|
|
}
|