PercentageTypeConverterCanConvertFrom(ITypeDescriptorContext, Type) Method
Returns whether this converter can convert an object of the given type to the type of this converter,
using the specified context.
Namespace: DevCase.Runtime.TypeConvertersAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public override bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
)
Public Overrides Function CanConvertFrom (
context As ITypeDescriptorContext,
sourceType As Type
) As Boolean
Dim instance As PercentageTypeConverter
Dim context As ITypeDescriptorContext
Dim sourceType As Type
Dim returnValue As Boolean
returnValue = instance.CanConvertFrom(context,
sourceType)
public:
virtual bool CanConvertFrom(
ITypeDescriptorContext^ context,
Type^ sourceType
) override
abstract CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
override CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
No code example is currently available or this language may not be supported.
- context ITypeDescriptorContext
-
An ITypeDescriptorContext that provides a format context.
- sourceType Type
-
A Type that represents the type you want to convert from.
Boolean if this converter can perform the conversion; otherwise,
.