Gemstone Common Library
Show/Hide TOC

# VolumeConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Converts the given object to the converter's native type.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.152 -- Release Build+1bdd5395ab91a1a698659399697f8334859b02d2
C#
View Source Request Example

    public override Object? ConvertFrom(
    	ITypeDescriptorContext? context,
    	CultureInfo? culture,
    	Object value
    )

VB
View Source Request Example

    Public Overrides Function ConvertFrom (
    	context As ITypeDescriptorContext,
    	culture As CultureInfo,
    	value As Object
    ) As Object

C++
View Source Request Example

    public:
    virtual Object^ ConvertFrom(
    	ITypeDescriptorContext^ context,
    	CultureInfo^ culture,
    	Object^ value
    ) override

JavaScript
View Source Request Example

    function ConvertFrom(context, culture, value);

#### Parameters

context ITypeDescriptorContext
  An ITypeDescriptorContext that provides a format context.
culture CultureInfo
  A CultureInfo that specifies the culture to represent the number.
value Object
  The object to convert.

#### Return Value

Object
An Object that represents the converted value.

## Exceptions

Exception | value is not a valid value for the target type.
NotSupportedException | The conversion cannot be performed.

## See Also

#### Reference

VolumeConverter Class
ConvertFrom Overload
Gemstone.Units Namespace