C# Class MvcContrib.CommandProcessor.Helpers.Converter

Show file Open project: atomicobject/mvccontrib

Public Methods

Method Description
ParseInteger ( string integerString ) : int?
ToDateTime ( IDateAndTime dateAndTime ) : DateTime?
ToDateTime ( object date ) : DateTime?
ToDateTime ( string date, string hour, string minute ) : DateTime?
ToInt32 ( string value ) : int

Private Methods

Method Description
Parse ( string date ) : DateTime?
ParseInteger ( string value, int min, int max ) : int?

Method Details

ParseInteger() public static method

public static ParseInteger ( string integerString ) : int?
integerString string
return int?

ToDateTime() public static method

public static ToDateTime ( IDateAndTime dateAndTime ) : DateTime?
dateAndTime IDateAndTime
return DateTime?

ToDateTime() public static method

public static ToDateTime ( object date ) : DateTime?
date object
return DateTime?

ToDateTime() public static method

public static ToDateTime ( string date, string hour, string minute ) : DateTime?
date string
hour string
minute string
return DateTime?

ToInt32() public static method

public static ToInt32 ( string value ) : int
value string
return int