Struct TextChange
Assembly: Microsoft.CodeAnalysis.dll
Syntax
[DataContract]
public readonly struct TextChange : IEquatable<TextChange>
Constructors
TextChange(TextSpan, string)
Declaration
public TextChange(TextSpan span, string newText)
Parameters
Properties
NewText
Declaration
[DataMember(Order = 1)]
public string? NewText { get; }
Property Value
NoChanges
Declaration
public static IReadOnlyList<TextChange> NoChanges { get; }
Property Value
Span
Declaration
[DataMember(Order = 0)]
public TextSpan Span { get; }
Property Value
Methods
Equals(TextChange)
Declaration
public bool Equals(TextChange other)
Parameters
Returns
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(TextChange, TextChange)
Declaration
public static bool operator ==(TextChange left, TextChange right)
Parameters
Returns
implicit operator TextChangeRange(TextChange)
Declaration
public static implicit operator TextChangeRange(TextChange change)
Parameters
Returns
operator !=(TextChange, TextChange)
Declaration
public static bool operator !=(TextChange left, TextChange right)
Parameters
Returns
Implements