ChessDotNet.Position.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(this, obj))
                return true;
            if (obj == null || GetType() != obj.GetType())
                return false;
            Position pos2 = (Position)obj;
            return File == pos2.File && Rank == pos2.Rank;
        }