WX5.Cvt Class Reference
Useful conversion routines.
More...
List of all members.
Static Public Member Functions |
static int | AsInt (object v) |
| Converts an object to the int value.
|
static long | AsLong (object v) |
| Converts an object to the long value.
|
static float | AsFloat (object v) |
| Converts an object to the float value.
|
static double | AsDouble (object v) |
| Converts an object to the double value.
|
static bool | AsBool (object v) |
| Converts an object to the boolean value.
|
static string | AsString (object v) |
| Converts an object to the string value.
|
static DateTime | AsDateTime (object v) |
| Converts an object to the System.DateTime value.
|
static DateTime | AsDateTime (object v, string dtFormat) |
| Converts an object to the System.DateTime value using specified format.
|
Static Public Attributes |
static DateTime | MinDate = new DateTime(1900, 1, 1) |
| The lowest date (mainly as a fix for the Windows.Forms.DateTimePicker).
|
Detailed Description
Useful conversion routines.
It allows to work with int, long, double, float, bool, string and DateTime data types
Member Function Documentation
static bool WX5.Cvt.AsBool |
( |
object |
v |
) |
[static] |
Converts an object to the boolean value.
- Parameters:
-
- Returns:
- conversion result
static DateTime WX5.Cvt.AsDateTime |
( |
object |
v, |
|
|
string |
dtFormat | |
|
) |
| | [static] |
Converts an object to the System.DateTime value using specified format.
- Parameters:
-
| v | input value |
| dtFormat | preferred format value |
- Returns:
- conversion result
static DateTime WX5.Cvt.AsDateTime |
( |
object |
v |
) |
[static] |
Converts an object to the System.DateTime value.
- Parameters:
-
- Returns:
- conversion result
static double WX5.Cvt.AsDouble |
( |
object |
v |
) |
[static] |
Converts an object to the double value.
- Parameters:
-
- Returns:
- conversion result
static float WX5.Cvt.AsFloat |
( |
object |
v |
) |
[static] |
Converts an object to the float value.
- Parameters:
-
- Returns:
- conversion result
static int WX5.Cvt.AsInt |
( |
object |
v |
) |
[static] |
Converts an object to the int value.
- Parameters:
-
- Returns:
- conversion result
static long WX5.Cvt.AsLong |
( |
object |
v |
) |
[static] |
Converts an object to the long value.
- Parameters:
-
- Returns:
- conversion result
static string WX5.Cvt.AsString |
( |
object |
v |
) |
[static] |
Converts an object to the string value.
- Parameters:
-
- Returns:
- conversion result
Member Data Documentation
The lowest date (mainly as a fix for the Windows.Forms.DateTimePicker).