C# Class Schumix.Libraries.Tools

Afficher le fichier Open project: Schumix/Schumix2

Méthodes publiques

Méthode Description
IsNumericType ( object o ) : bool

Determines whether the specified value is of numeric type.

IsPositive ( object Value, bool ZeroIsPositive ) : bool

Determines whether the specified value is positive.

ReplaceMetaChars ( string input ) : string

Replaces the string representations of meta chars with their corresponding character values.

ToInteger ( object Value, bool Round ) : object

Converts the specified values boxed type to its correpsonding integer type.

ToUnsigned ( object Value ) : object

Converts the specified values boxed type to its correpsonding unsigned type.

UnboxToLong ( object Value, bool Round ) : long
fprintf ( TextWriter Destination, string Format ) : void
printf ( string Format ) : void
sprintf ( string Format ) : string

Private Methods

Méthode Description
FormatHex ( string NativeFormat, bool Alternate, int FieldLength, int FieldPrecision, bool Left2Right, char Padding, object Value ) : string
FormatNumber ( string NativeFormat, bool Alternate, int FieldLength, int FieldPrecision, bool Left2Right, bool PositiveSign, bool PositiveSpace, char Padding, object Value ) : string
FormatOct ( string NativeFormat, bool Alternate, int FieldLength, int FieldPrecision, bool Left2Right, char Padding, object Value ) : string
ReplaceMetaCharsMatch ( Match m ) : string

Method Details

IsNumericType() public static méthode

Determines whether the specified value is of numeric type.
public static IsNumericType ( object o ) : bool
o object The object to check.
Résultat bool

IsPositive() public static méthode

Determines whether the specified value is positive.
public static IsPositive ( object Value, bool ZeroIsPositive ) : bool
Value object The value.
ZeroIsPositive bool if set to true treats 0 as positive.
Résultat bool

ReplaceMetaChars() public static méthode

Replaces the string representations of meta chars with their corresponding character values.
public static ReplaceMetaChars ( string input ) : string
input string The input.
Résultat string

ToInteger() public static méthode

Converts the specified values boxed type to its correpsonding integer type.
public static ToInteger ( object Value, bool Round ) : object
Value object The value.
Round bool
Résultat object

ToUnsigned() public static méthode

Converts the specified values boxed type to its correpsonding unsigned type.
public static ToUnsigned ( object Value ) : object
Value object The value.
Résultat object

UnboxToLong() public static méthode

public static UnboxToLong ( object Value, bool Round ) : long
Value object
Round bool
Résultat long

fprintf() public static méthode

public static fprintf ( TextWriter Destination, string Format ) : void
Destination System.IO.TextWriter
Format string
Résultat void

printf() public static méthode

public static printf ( string Format ) : void
Format string
Résultat void

sprintf() public static méthode

public static sprintf ( string Format ) : string
Format string
Résultat string