C# Class Elmah.SccStamp

Show file Open project: elmah/Elmah Class Usage Examples

Public Methods

Method Description
FindAll ( Assembly assembly ) : Elmah.SccStamp[]

Finds and builds an array of SccStamp instances from all the SccAttribute attributes applied to the given assembly.

FindLatest ( Assembly assembly ) : SccStamp

Finds the latest SCC stamp for an assembly. The latest stamp is the one with the highest revision number.

FindLatest ( SccStamp stamps ) : SccStamp

Finds the latest stamp among an array of SccStamp objects. The latest stamp is the one with the highest revision number.

SccStamp ( string id ) : System

Initializes an SccStamp instance given a SCC stamp ID. The ID is expected to be in the format popularized by CVS and SVN.

SortByRevision ( SccStamp stamps ) : void

Sorts an array of SccStamp objects by their revision numbers in ascending order.

SortByRevision ( SccStamp stamps, bool descending ) : void

Sorts an array of SccStamp objects by their revision numbers in ascending or descending order.

ToString ( ) : string

Private Methods

Method Description
SccStamp ( ) : System

Method Details

FindAll() public static method

Finds and builds an array of SccStamp instances from all the SccAttribute attributes applied to the given assembly.
public static FindAll ( Assembly assembly ) : Elmah.SccStamp[]
assembly System.Reflection.Assembly
return Elmah.SccStamp[]

FindLatest() public static method

Finds the latest SCC stamp for an assembly. The latest stamp is the one with the highest revision number.
public static FindLatest ( Assembly assembly ) : SccStamp
assembly System.Reflection.Assembly
return SccStamp

FindLatest() public static method

Finds the latest stamp among an array of SccStamp objects. The latest stamp is the one with the highest revision number.
public static FindLatest ( SccStamp stamps ) : SccStamp
stamps SccStamp
return SccStamp

SccStamp() public method

Initializes an SccStamp instance given a SCC stamp ID. The ID is expected to be in the format popularized by CVS and SVN.
public SccStamp ( string id ) : System
id string
return System

SortByRevision() public static method

Sorts an array of SccStamp objects by their revision numbers in ascending order.
public static SortByRevision ( SccStamp stamps ) : void
stamps SccStamp
return void

SortByRevision() public static method

Sorts an array of SccStamp objects by their revision numbers in ascending or descending order.
public static SortByRevision ( SccStamp stamps, bool descending ) : void
stamps SccStamp
descending bool
return void

ToString() public method

public ToString ( ) : string
return string