Gemstone Common Library
Show/Hide TOC

# VoltageConverterCanConvertFrom(ITypeDescriptorContext, Type) Method

Determines if this converter can convert an object in the given source type to the native type of the converter.

## Definition

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

    public override bool CanConvertFrom(
    	ITypeDescriptorContext? context,
    	Type sourceType
    )

VB
View Source Request Example

    Public Overrides Function CanConvertFrom (
    	context As ITypeDescriptorContext,
    	sourceType As Type
    ) As Boolean

C++
View Source Request Example

    public:
    virtual bool CanConvertFrom(
    	ITypeDescriptorContext^ context,
    	Type^ sourceType
    ) override

JavaScript
View Source Request Example

    function CanConvertFrom(context, sourceType);

#### Parameters

context ITypeDescriptorContext
  An ITypeDescriptorContext that provides a format context.
sourceType Type
  A Type that represents the type from which you want to convert.

#### Return Value

Boolean
if this converter can perform the operation; otherwise, .

## See Also

#### Reference

VoltageConverter Class
CanConvertFrom Overload
Gemstone.Units Namespace