C# Class Itenso.TimePeriodDemo.ConsoleTool

Mostra file Open project: jwg4/date-difference Class Usage Examples

Public Methods

Method Description
Format ( System.DateTime dateTime, bool compact = true ) : string
QueryNumber ( string prompt, int defaultValue, int minValue, int maxValue ) : int?
QueryText ( string prompt, string defaultValue ) : string
Write ( string text ) : void
WriteIndentLine ( string text ) : void
WriteLine ( ) : void
WriteLine ( string text ) : void
WriteSeparatorLine ( char symbol = '-', int symbolCount = 80 ) : void

Method Details

Format() public static method

public static Format ( System.DateTime dateTime, bool compact = true ) : string
dateTime System.DateTime
compact bool
return string

QueryNumber() public static method

public static QueryNumber ( string prompt, int defaultValue, int minValue, int maxValue ) : int?
prompt string
defaultValue int
minValue int
maxValue int
return int?

QueryText() public static method

public static QueryText ( string prompt, string defaultValue ) : string
prompt string
defaultValue string
return string

Write() public static method

public static Write ( string text ) : void
text string
return void

WriteIndentLine() public static method

public static WriteIndentLine ( string text ) : void
text string
return void

WriteLine() public static method

public static WriteLine ( ) : void
return void

WriteLine() public static method

public static WriteLine ( string text ) : void
text string
return void

WriteSeparatorLine() public static method

public static WriteSeparatorLine ( char symbol = '-', int symbolCount = 80 ) : void
symbol char
symbolCount int
return void