Microsoft.Protocols.TestSuites.MS_OXCFXICS.GLOBCNT.Equals C# (CSharp) Method

Equals() public method

Indicates whether this instance and a specified object are equal.
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;
        }