Azavea.Open.DAO.ConnectionDescriptor.Equals C# (CSharp) Method

Equals() public method

The default implementation does a comparison based on ToCompleteString. If this is inaccurate or inefficient for a given implementation, this method should be overridden.
public Equals ( object obj ) : bool
obj object Other descriptor to compare with.
return bool
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }
            if (!GetType().Equals(obj.GetType()))
            {
                return false;
            }
            return StringHelper.SafeEquals(ToCompleteString(), ((IConnectionDescriptor)obj).ToCompleteString());
        }