Tpm2Lib.TpmStructureBase.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object obj ) : bool
obj Object
return bool
        public override bool Equals(Object obj)
        {
            if (obj == null || this.GetType() != obj.GetType())
            {
                return false;
            }
            byte[] b0 = this.GetTpmRepresentation(),
                   b1 = ((TpmStructureBase)obj).GetTpmRepresentation();
            return Globs.ArraysAreEqual(b0, b1);
        }