TextMergeChunk Class

A region of a three-way merge, with its text in the base and in both sides.

public sealed class TextMergeChunk

Properties

NameDescription
BaseTextGets the text of the region in the base.
KindGets how the region was resolved.
OursTextGets the text of the region in "ours".
TextGets the merged text of the region: TextMergeChunk.TheirsText for TextMergeChunkKind.ChangedInTheirs, TextMergeChunk.OursText otherwise, or null for a TextMergeChunkKind.Conflict.
TheirsTextGets the text of the region in "theirs".

Gets the text of the region in the base.

public string BaseText { get; }

Property value

string

Gets how the region was resolved.

public TextMergeChunkKind Kind { get; }

Property value

TextMergeChunkKind

Gets the text of the region in "ours".

public string OursText { get; }

Property value

string

public string? Text { get; }

Property value

string?

Gets the text of the region in "theirs".

public string TheirsText { get; }

Property value

string

Methods

NameDescription
ToString()
public override string ToString()

Returns

string

No documentation is available.