Returns a formatted string.
Type
to be formatted prior to conversion to an internal
System
type representation.true
if value can be converted, false
otherwise.
Format
is used to clean a string from any unnecessary UI artifacts before converting
it from the type specified by Type
to the specified System
type. For example, a Currency
type is internally converted to System.Decimal
. From a UI point of view, it is perfectly valid to include
$ and . characters in a Currency
field on a UI, but such a field cannot be converted to
System.Decimal
. Format
is used to strip any characters that won't make the conversion from UI Type
to internal System
type.
The following table shows what ValidationDataTypes are converted to
what internal System
types.
ValidationDataType | System Type |
---|---|
Currency | System.Decimal |
Date | System.DateTime |
Double | System.Double |
Integer | System.Int32 |
String | System.String |
BaseCompareValidator Class | BaseCompareValidator Members | Genghis.Windows.Forms Namespace