C# Class No.Utilities

Mostra file Open project: hexafluoride/no

Public Methods

Method Description
GetDataRoot ( ) : string
GetRelativePath ( string absolute, string child ) : string
GetString ( byte data ) : string
IsRunningOnMono ( ) : bool
LogMessage ( string message ) : void
PrintColored ( string message ) : void

Prints a color-coded string. Color codes are as follows: %0: black %7: gray %a: green %c: red %f: white(for emphasis) %e: yellow

PrintColoredLine ( string message ) : void

Prints a color-coded string. Color codes are as follows: %0: black %7: gray %a: green %c: red %f: white(for emphasis) %e: yellow

ProperMove ( string source, string dest, string root = "" ) : void
RunAndPipe ( string file, string args, string data ) : void
SetClipboard ( string text ) : void

Method Details

GetDataRoot() public static method

public static GetDataRoot ( ) : string
return string

GetRelativePath() public static method

public static GetRelativePath ( string absolute, string child ) : string
absolute string
child string
return string

GetString() public static method

public static GetString ( byte data ) : string
data byte
return string

IsRunningOnMono() public static method

public static IsRunningOnMono ( ) : bool
return bool

LogMessage() public static method

public static LogMessage ( string message ) : void
message string
return void

PrintColored() public static method

Prints a color-coded string. Color codes are as follows: %0: black %7: gray %a: green %c: red %f: white(for emphasis) %e: yellow
public static PrintColored ( string message ) : void
message string The message to print
return void

PrintColoredLine() public static method

Prints a color-coded string. Color codes are as follows: %0: black %7: gray %a: green %c: red %f: white(for emphasis) %e: yellow
public static PrintColoredLine ( string message ) : void
message string The message to print
return void

ProperMove() public static method

public static ProperMove ( string source, string dest, string root = "" ) : void
source string
dest string
root string
return void

RunAndPipe() public static method

public static RunAndPipe ( string file, string args, string data ) : void
file string
args string
data string
return void

SetClipboard() public static method

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