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:
v input value
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:
v input value
Returns:
conversion result
static double WX5.Cvt.AsDouble ( object  v  )  [static]

Converts an object to the double value.

Parameters:
v input value
Returns:
conversion result
static float WX5.Cvt.AsFloat ( object  v  )  [static]

Converts an object to the float value.

Parameters:
v input value
Returns:
conversion result
static int WX5.Cvt.AsInt ( object  v  )  [static]

Converts an object to the int value.

Parameters:
v input value
Returns:
conversion result
static long WX5.Cvt.AsLong ( object  v  )  [static]

Converts an object to the long value.

Parameters:
v input value
Returns:
conversion result
static string WX5.Cvt.AsString ( object  v  )  [static]

Converts an object to the string value.

Parameters:
v input value
Returns:
conversion result

Member Data Documentation

DateTime WX5.Cvt.MinDate = new DateTime(1900, 1, 1) [static]

The lowest date (mainly as a fix for the Windows.Forms.DateTimePicker).

Generated on Wed Jun 2 01:15:47 2010 for WX Library 5.0 documentation by  doxygen 1.6.3