/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <returns> /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false. /// </returns> /// <param name="other">An object to compare with this object</param> public bool Equals(CSharpRegexCapabilities other) { if (other == null) { return(false); } if (this == other) { return(true); } if (_rPattern != null ? !_rPattern.Equals(other._rPattern) : other._rPattern != null) { return(false); } return(true); }