C# Class StatePrinting.ValueConverters.RollingGuidValueConverter

Handles the printing of guids, where each guid is transformed into a very readable form by transforming a small integer into the guid-format. When the same guid is to be printed multiple times, it retains its new simpler-to-read value. This is nice for unit testing, since guids now become stable across multiple executions
Inheritance: IValueConverter
Datei anzeigen Open project: kbilsted/StatePrinter Class Usage Examples

Public Methods

Method Description
CanHandleType ( Type t ) : bool
Convert ( object source ) : string

Private Methods

Method Description
CreateRollingGuid ( ) : string

Method Details

CanHandleType() public method

public CanHandleType ( Type t ) : bool
t System.Type
return bool

Convert() public method

public Convert ( object source ) : string
source object
return string