/// <summary> /// Determines whether two <see cref="FindData"/> objects are the same. /// </summary> /// <param name="obj">The object to compare.</param> /// <returns><c>true</c> if the objects are the same, otherwise <c>false</c>.</returns> public override bool Equals(object obj) { if (obj is FindData) { FindData other = (FindData)obj; return((string.Equals(_searchString, other._searchString, StringComparison.Ordinal)) && (FindOptions == other.FindOptions) && object.ReferenceEquals(_textSnapshotToSearch, other._textSnapshotToSearch) && object.ReferenceEquals(TextStructureNavigator, other.TextStructureNavigator)); } return(false); }
/// <summary> /// Determines whether two <see cref="FindData"/> objects are the same. /// </summary> /// <param name="obj">The object to compare.</param> /// <returns><c>true</c> if the objects are the same, otherwise <c>false</c>.</returns> public override bool Equals(object obj) { if (obj is FindData) { FindData other = (FindData)obj; return((_searchString == other._searchString) && (_findOptions == other._findOptions) && object.ReferenceEquals(_textSnapshotToSearch, other._textSnapshotToSearch) && object.ReferenceEquals(_textStructureNavigator, other._textStructureNavigator)); } return(false); }