Microsoft.Protocols.TestSuites.SharedAdapter.CellID.Equals C# (CSharp) Méthode

Equals() public méthode

Override the Equals method.
public Equals ( object obj ) : bool
obj object Specify the object.
Résultat bool
        public override bool Equals(object obj)
        {
            CellID another = obj as CellID;

            if (another == null)
            {
                return false;
            }

            if (another.ExtendGUID1 != null && another.ExtendGUID2 != null && this.ExtendGUID1 != null && this.ExtendGUID2 != null)
            {
                return another.ExtendGUID1.Equals(this.ExtendGUID1) && another.ExtendGUID2.Equals(this.ExtendGUID2);
            }

            return false;
        }