C# Class stringFormat, shared-source-cli-2.0

Class with Main entry point.
Exibir arquivo Open project: gbarnett/shared-source-cli-2.0

Public Methods

Method Description
Main ( string args ) : void

Main entry point.

PrintFormat ( IFormattable inputData, string formatString ) : void

Overload that uses null for the IFormatProvider.

PrintFormat ( IFormattable inputData, string formatString, IFormatProvider provider ) : void

Outputs the data with the specified format.

TryUserFormat ( IFormattable inputData ) : void

Gets a format string from the user and calls PrintFormat() with it.

Method Details

Main() public static method

Main entry point.
public static Main ( string args ) : void
args string
return void

PrintFormat() public static method

Overload that uses null for the IFormatProvider.
public static PrintFormat ( IFormattable inputData, string formatString ) : void
inputData IFormattable
formatString string
return void

PrintFormat() public static method

Outputs the data with the specified format.
public static PrintFormat ( IFormattable inputData, string formatString, IFormatProvider provider ) : void
inputData IFormattable
formatString string
provider IFormatProvider
return void

TryUserFormat() public static method

Gets a format string from the user and calls PrintFormat() with it.
public static TryUserFormat ( IFormattable inputData ) : void
inputData IFormattable
return void