C# Class Icing.UInt32Extensions

UInt32 extensions.
ファイルを表示 Open project: benallred/Icing

Public Methods

Method Description
PadNumber ( this source, uint maxNumberToMatch, char paddingChar = '0' ) : string

Returns a string that right-aligns the digits in this number by padding them on the left with a specified Unicode character, for a total length equal to that of the length of the maximum number to match.

Method Details

PadNumber() public static method

Returns a string that right-aligns the digits in this number by padding them on the left with a specified Unicode character, for a total length equal to that of the length of the maximum number to match.
public static PadNumber ( this source, uint maxNumberToMatch, char paddingChar = '0' ) : string
source this The source.
maxNumberToMatch uint The maximum number to match.
paddingChar char A Unicode padding character.
return string