C# Класс GitSharp.Core.Diff.Edit

A modified region detected between two versions of roughly the same content. Regions should be specified using 0 based notation, so add 1 to the start and end marks for line numbers in a file. An edit where beginA == endA && beginB > endB is an insert edit, that is sequence B inserted the elements in region [beginB, endB) at beginA. An edit where beginA > endA && beginB > endB is a replace edit, that is sequence B has replaced the range of elements between [beginA, endA) with those found in [beginB, endB).
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Edit ( int aStart, int bStart )

Create a new empty edit.

Edit ( int aStart, int aEnd, int bStart, int bEnd )

Create a new empty edit.

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

ExtendA ( ) : void

Increase EndA by 1.

ExtendB ( ) : void

Increase EndB by 1.

GetHashCode ( ) : int
Swap ( ) : void

Swap A and B, so the edit goes the other direction.

ToString ( ) : string
operator ( ) : bool

Описание методов

Edit() публичный Метод

Create a new empty edit.
public Edit ( int aStart, int bStart )
aStart int beginA: start and end of region in sequence A; 0 based.
bStart int beginB: start and end of region in sequence B; 0 based.

Edit() публичный Метод

Create a new empty edit.
public Edit ( int aStart, int aEnd, int bStart, int bEnd )
aStart int beginA: start and end of region in sequence A; 0 based.
aEnd int endA: end of region in sequence A; must be >= as.
bStart int beginB: start and end of region in sequence B; 0 based.
bEnd int endB: end of region in sequence B; must be >= bs.

Equals() публичный Метод

Determines whether the specified T:System.Object is equal to the current T:System.Object.
/// The parameter is null. ///
public Equals ( object obj ) : bool
obj object The to compare with /// the current . ///
Результат bool

ExtendA() публичный Метод

Increase EndA by 1.
public ExtendA ( ) : void
Результат void

ExtendB() публичный Метод

Increase EndB by 1.
public ExtendB ( ) : void
Результат void

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Swap() публичный Метод

Swap A and B, so the edit goes the other direction.
public Swap ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool