/// <summary> /// Returns true if another TextReplacement is equal to this one (same new and original text and location), false otherwise. /// </summary> /// <param name="other">The other TextReplacement to compare.</param> /// <returns>True of the other TextReplacement is equal to this one, false otherwise.</returns> public bool Equals(MappedTextReplacement?other) => other != null && FilePath.Equals(other.FilePath, StringComparison.OrdinalIgnoreCase) && StartingLine == other.StartingLine && NewText.Equals(other.NewText, StringComparison.Ordinal) && OriginalText.Equals(other.OriginalText, StringComparison.Ordinal);
/// <summary> /// Returns true if another TextReplacement is equal to this one (same new and original text and location), false otherwise. /// </summary> /// <param name="other">The other TextReplacement to compare.</param> /// <returns>True of the other TextReplacement is equal to this one, false otherwise.</returns> public bool Equals(TextReplacement?other) => other != null && NewText.ContentEquals(other.NewText) && OriginalText.Equals(other.OriginalText);