public Equals ( object obj ) : bool | ||
obj | object | Another object to compare to. |
return | bool |
public override bool Equals(object obj)
{
byte[] tmp1 = StructureSerializer.Serialize(obj);
byte[] tmp2 = StructureSerializer.Serialize(this);
for (int i = 0; i < tmp1.Length; i++)
{
if (tmp1[i] != tmp2[i])
{
return false;
}
}
return true;
}