C# Class RT.Comb.SqlDateTimeStrategy

Represents a mechanism for converting DateTime values back and forth to byte arrays. Strategies can differ depending on how many bytes of the GUID you wish to overwrite, what time resolution you want, etc.
Inheritance: ICombDateTimeStrategy
显示文件 Open project: richardtallent/RT.Comb

Public Methods

Method Description
BytesToDateTime ( byte value ) : System.DateTime
DateTimeToBytes ( System.DateTime timestamp ) : byte[]

Method Details

BytesToDateTime() public method

public BytesToDateTime ( byte value ) : System.DateTime
value byte
return System.DateTime

DateTimeToBytes() public method

public DateTimeToBytes ( System.DateTime timestamp ) : byte[]
timestamp System.DateTime
return byte[]