C# Class Malevich._Default.DiffItem

Represents a block of lines of a particular difference type.
Inheritance: ICloneable
Show file Open project: daptiv/Malevich

Public Properties

Property Type Description
BaseLineCount int
BaseStartLineNumber int
DiffLineCount int
DiffType DiffType

Public Methods

Method Description
Clone ( ) : object

Clones the object.

DiffItem ( ) : System

Trivial constructor.

EnumerateDifferences ( StreamCombiner rawDiffStream ) : IEnumerable

Generates a sequence of DiffItems representing differences in rawDiffStream. Includes unchanged blocks.

EnumerateDifferences ( StreamCombiner rawDiffStream, bool includeUnchangedBlocks ) : IEnumerable

Generates a sequence of DiffItems representing differences in rawDiffStream.

Method Details

Clone() public method

Clones the object.
public Clone ( ) : object
return object

DiffItem() public method

Trivial constructor.
public DiffItem ( ) : System
return System

EnumerateDifferences() public static method

Generates a sequence of DiffItems representing differences in rawDiffStream. Includes unchanged blocks.
public static EnumerateDifferences ( StreamCombiner rawDiffStream ) : IEnumerable
rawDiffStream StreamCombiner
return IEnumerable

EnumerateDifferences() public static method

Generates a sequence of DiffItems representing differences in rawDiffStream.
public static EnumerateDifferences ( StreamCombiner rawDiffStream, bool includeUnchangedBlocks ) : IEnumerable
rawDiffStream StreamCombiner
includeUnchangedBlocks bool /// Indicates whether to generate DiffItems for unchanged blocks. ///
return IEnumerable

Property Details

BaseLineCount public property

The number of lines removed from the base file.
public int BaseLineCount
return int

BaseStartLineNumber public property

The starting line number within the base file.
public int BaseStartLineNumber
return int

DiffLineCount public property

The number of lines added to the diff file.
public int DiffLineCount
return int

DiffType public property

The type of difference represented.
public DiffType DiffType
return DiffType