x4Trace Documentation v1.0
|
Represents a convert class. More...
Static Public Member Functions | |
static string | HEX3ToNumberString (string hex3) |
Hexadecimal string to string of number. | |
static string | ToBase64UTF8 (string str) |
Converts string to base64 string. | |
static string | FromBase64UTF8 (string str) |
Converts base64 string to string. | |
static double | ToDouble (string str) |
Converts string to double. | |
static decimal | ToDecimal (string str) |
Converts string to decimal. | |
static decimal | ToDecimal (string str, decimal defaultValue) |
Converts string to decimal. | |
static float | ToFloat (string str) |
Converts string to float. | |
static int | ToInt (string str) |
Converts string to int. | |
static long | ToLong (string str) |
Converts string to long. | |
static DateTime | ToDateTime (string str) |
Converts string to datetime. | |
static string | ToString (System.Drawing.Color color) |
Converts color to string. | |
static string | ToString (double num) |
Converts double to string. | |
static string | ToString (float num) |
Converts float to string. | |
static string | ToString (double num, int decimals) |
Converts double to string. | |
static System.Drawing.Color | ToColor (string str) |
Converts color to string. | |
static byte | ToByte (string str) |
Converts string to byte. | |
static void | Cobs0Encode (byte[] b, int startindex) |
Encode bytes with cobs. | |
static void | Cobs0Decode (byte[] b, int startIndex) |
Decode cobs. | |
static int | FindNext (byte[] b, byte num, int startIndex) |
Find next zero of cobs. | |
static double | InchesToMilimeter (double inches) |
Convert inches to milimeter. | |
static double | CentiMeterToMiliMeter (double cm) |
Convert centimeter to milimeter. | |
static double | InchesToCentiMeter (double inches) |
Convert inches to centimeter. | |
static double | MiliMeterToCentiMeter (double mm) |
Converts milimeter to centimeter. | |
static double | CentiMeterToInches (double cm) |
Converts centi meter to inch. | |
static double | MiliMeterToInches (double mm) |
Converts milimeter to inches. | |
static double | MiliMeterToMeter (double mm) |
Converts milimeter to meter. | |
static double | InchesToMeter (double inches) |
Converts inches to meter. | |
static double | CentiMeterToMeter (double cm) |
Converts centimeter to meter. | |
static double | MeterToMiliMeter (double m) |
Converts meter to milli meter. | |
static double | MeterToCentiMeter (double m) |
Converts meter to centi meter. | |
static double | MeterToInches (double m) |
Converts meter to inches. | |
static bool | IsNumber (char c) |
Returns true when the character is a number. | |
static bool | IsInteger (string str) |
Returns true when the string is a number. | |
static bool | IsDouble (string number) |
Returns true when the string is a double. | |
Static Public Attributes | |
static System.Globalization.NumberFormatInfo | numberFormatInfo = System.Globalization.NumberFormatInfo.InvariantInfo |
Number format information. | |
Static Private Member Functions | |
static | Convert () |
Static initializer. | |
Represents a convert class.
|
static |
Converts centi meter to inch.
cm | Value in centimeter. |
|
static |
Converts centimeter to meter.
cm | Value in centimeter. |
|
static |
|
static |
Decode cobs.
b | Buffet. |
startIndex | Index of start. |
|
static |
Encode bytes with cobs.
b | Buffer. |
startindex | Index of start. |
|
static |
Find next zero of cobs.
b | Buffer. |
num | Number of bytes. |
startIndex | Index of start. |
|
static |
Converts base64 string to string.
str | Base 64 string. |
|
static |
Hexadecimal string to string of number.
hex3 | String of hex number. |
|
static |
|
static |
Converts inches to meter.
inches | Value in inches. |
|
static |
|
static |
Returns true when the string is a double.
number | The string. |
|
static |
Returns true when the string is a number.
str | The string. |
|
static |
Returns true when the character is a number.
c | Character. |
|
static |
Converts meter to centi meter.
m | Value in meter. |
|
static |
Converts meter to inches.
m | Value in meter. |
|
static |
Converts meter to milli meter.
m | Value in meter. |
|
static |
Converts milimeter to centimeter.
mm | Value in milimeter. |
|
static |
Converts milimeter to inches.
mm | Value in millimeter. |
|
static |
Converts milimeter to meter.
mm | Value in milimeter. |
|
static |
Converts string to base64 string.
str | The string. |
|
static |
Converts string to byte.
str | Byte as string. |
|
static |
Converts color to string.
str | Color as string. |
|
static |
Converts string to datetime.
str | Datetime as string. |
|
static |
Converts string to decimal.
str | Number as string. |
|
static |
Converts string to decimal.
str | Number as string. |
defaultValue | The default value. |
|
static |
Converts string to double.
str | Number of string. |
|
static |
Converts string to float.
str | Number as string. |
|
static |
Converts string to int.
str | Number as string. |
|
static |
Converts string to long.
str | Number as string. |
|
static |
Converts double to string.
num | Double value. |
|
static |
Converts double to string.
num | Double value. |
decimals | Decimals. |
|
static |
Converts float to string.
num | Float value. |
|
static |
Converts color to string.
color | Color value. |