Pidgin

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
Implements
Inherited Members
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

EditInfo

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

LocationRange

InputRange

The range in the original input stream that is being replaced.

long

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

Type

InputRange

The range in the original input stream that is being replaced.

Declaration
public LocationRange InputRange { get; init; }
Property Value
Type Description

LocationRange

NewContentLength

The length of the new content that replaces the original range.

Declaration
public long NewContentLength { get; init; }
Property Value
Type Description

long

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

LocationRange

InputRange

long

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

EditInfo

other

Returns
Type Description

bool

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

object

obj

Returns
Type Description

bool

Overrides
object.Equals(object)

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

int

Overrides
object.GetHashCode()

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

StringBuilder

builder

Returns
Type Description

bool

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

string

Overrides
object.ToString()

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

EditInfo

left

EditInfo

right

Returns
Type Description

bool

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

EditInfo

left

EditInfo

right

Returns
Type Description

bool

Implements

IEquatable<T>