UnifiedDiffLine Struct
A line of a UnifiedDiffHunk: an unchanged line of context, a deleted line or an inserted line.
public readonly struct UnifiedDiffLine : IEquatable<UnifiedDiffLine>- Implements
Properties
| Name | Description |
|---|---|
| Operation | Gets TextDiffOperation.Equal for a line of context (prefix ' '), TextDiffOperation.Delete for a deleted line ('-') or TextDiffOperation.Insert for an inserted line ('+'). |
| Text | Gets the line without its prefix. It ends with "\n", unless it is the last line of a text that does not end with a line feed (\ No newline at end of file). |
Operation
UnifiedDiffLine.csGets TextDiffOperation.Equal for a line of context (prefix ' '), TextDiffOperation.Delete for a deleted line ('-') or TextDiffOperation.Insert for an inserted line ('+').
public TextDiffOperation Operation { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(UnifiedDiffLine) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(UnifiedDiffLine)
UnifiedDiffLine.cspublic bool Equals(UnifiedDiffLine other)No documentation is available.
Equals(object?)
UnifiedDiffLine.csGetHashCode()
UnifiedDiffLine.csToString()
UnifiedDiffLine.csOperators
| Name | Description |
|---|---|
| operator ==(UnifiedDiffLine, UnifiedDiffLine) | |
| operator !=(UnifiedDiffLine, UnifiedDiffLine) |
operator ==(UnifiedDiffLine, UnifiedDiffLine)
UnifiedDiffLine.cspublic static bool operator ==(UnifiedDiffLine left, UnifiedDiffLine right)No documentation is available.
operator !=(UnifiedDiffLine, UnifiedDiffLine)
UnifiedDiffLine.cspublic static bool operator !=(UnifiedDiffLine left, UnifiedDiffLine right)No documentation is available.