Class EditInfo
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Inheritance
- object
- EditInfo
Implements
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
Declaration
public record EditInfo : IEquatable<EditInfo>
Constructors
EditInfo(EditInfo)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
protected EditInfo(EditInfo original)
Parameters
| Type | Name | Description |
|---|---|---|
original |
EditInfo(LocationRange, long)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public EditInfo(LocationRange InputRange, long NewContentLength)
Parameters
| Type | Name | Description |
|---|---|---|
InputRange |
The range in the original input stream that is being replaced. |
|
NewContentLength |
The length of the new content that replaces the original range. |
Properties
EqualityContract
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
protected virtual Type EqualityContract { get; }
Property Value
| Type | Description |
|---|---|
InputRange
The range in the original input stream that is being replaced.
Declaration
public LocationRange InputRange { get; init; }
Property Value
| Type | Description |
|---|---|
NewContentLength
The length of the new content that replaces the original range.
Declaration
public long NewContentLength { get; init; }
Property Value
| Type | Description |
|---|---|
Methods
Deconstruct(out LocationRange, out long)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public void Deconstruct(out LocationRange InputRange, out long NewContentLength)
Parameters
| Type | Name | Description |
|---|---|---|
InputRange |
||
NewContentLength |
Equals(EditInfo?)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public virtual bool Equals(EditInfo? other)
Parameters
| Type | Name | Description |
|---|---|---|
other |
Returns
| Type | Description |
|---|---|
Equals(object?)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
obj |
Returns
| Type | Description |
|---|---|
Overrides
GetHashCode()
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
Overrides
PrintMembers(StringBuilder)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
builder |
Returns
| Type | Description |
|---|---|
ToString()
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
Overrides
Operators
operator ==(EditInfo?, EditInfo?)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public static bool operator ==(EditInfo? left, EditInfo? right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
| Type | Description |
|---|---|
operator !=(EditInfo?, EditInfo?)
Represents information about an edit to an input stream, including the range of the original input affected and the length of the new content.
Declaration
public static bool operator !=(EditInfo? left, EditInfo? right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
| Type | Description |
|---|---|