C# Class KSUtil.CompareFileData

Class used to compare two event files together, stores the results for display in the UI
显示文件 Open project: angelaHillier/KSUtil Class Usage Examples

Public Methods

Method Description
CompareFileData ( ) : System

Initializes a new instance of the CompareFileData class

CompareFileData ( FileData leftFile, FileData rightFile ) : System

Initializes a new instance of the CompareFileData class and sets properties based on the FileData provided

GetCompareFileDataAsText ( ) : string

Formats an output string to show results for the -compare command-line parameter

Private Methods

Method Description
CompareMetadata ( object>.IEnumerable leftMetadata, object>.IEnumerable rightMetadata, bool &same ) : ObservableCollection

Compares two metadata collections together

CompareStreams ( IEnumerable leftStreams, IEnumerable rightStreams ) : ObservableCollection

Compares similar streams from two different files together

GetCompareDataAsText ( IEnumerable compareData ) : string

Returns the CompareData object as a string for output to the command-line or log file

Method Details

CompareFileData() public method

Initializes a new instance of the CompareFileData class
public CompareFileData ( ) : System
return System

CompareFileData() public method

Initializes a new instance of the CompareFileData class and sets properties based on the FileData provided
public CompareFileData ( FileData leftFile, FileData rightFile ) : System
leftFile FileData First set of FileData to use in comparison
rightFile FileData Second set of FileData to use in comparison
return System

GetCompareFileDataAsText() public method

Formats an output string to show results for the -compare command-line parameter
public GetCompareFileDataAsText ( ) : string
return string