Свойство | Тип | Описание | |
---|---|---|---|
FromString | object | ||
FromString | object | ||
FromString | object | ||
ToString | string |
Метод | Описание | |
---|---|---|
CanConvertTo ( ITypeDescriptorContext context, |
Gets a value indicating whether this converter can convert an object to the given destination type using the context.
|
|
ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, |
Converts the given object to another type. The most common types to convert are to and from a string object. The default implementation will make a call to ToString on the object if the object is valid and if the destination type is string. If this cannot convert to the desitnation type, this will throw a NotSupportedException.
|
Метод | Описание | |
---|---|---|
FromString ( string value, CultureInfo culture ) : object |
Convert the given value to a string using the given CultureInfo
|
|
FromString ( string value, NumberFormatInfo formatInfo ) : object |
Convert the given value to a string using the given formatInfo
|
|
FromString ( string value, int radix ) : object |
Convert the given value to a string using the given radix
|
|
ToString ( object value, NumberFormatInfo formatInfo ) : string |
Convert the given value from a string using the given formatInfo
|
public CanConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | |
destinationType | ||
Результат | bool |
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, |
||
context | ITypeDescriptorContext | |
culture | CultureInfo | |
value | object | |
destinationType | ||
Результат | object |