| BinarySizeConverterConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type) |
Converts the specified object to the specified type.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public override Object ConvertTo(
ITypeDescriptorContext context,
CultureInfo culture,
Object value,
Type destinationType
)
Public Overrides Function ConvertTo (
context As ITypeDescriptorContext,
culture As CultureInfo,
value As Object,
destinationType As Type
) As Object
public:
virtual Object^ ConvertTo(
ITypeDescriptorContext^ context,
CultureInfo^ culture,
Object^ value,
Type^ destinationType
) override
abstract ConvertTo :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object *
destinationType : Type -> Object
override ConvertTo :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object *
destinationType : Type -> Object
Parameters
- context
- Type: System.ComponentModelITypeDescriptorContext
A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be , so you should always check. Also, properties on the context object may also return . - culture
- Type: System.GlobalizationCultureInfo
An object that contains culture specific information, such as the language, calendar, and cultural conventions associated with a specific culture. It is based on the RFC 1766 standard. - value
- Type: SystemObject
The object to convert. - destinationType
- Type: SystemType
The type to convert the object to.
Return Value
Type:
ObjectThe converted object.
See Also