Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ExpressionConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Can we convert from a the sourcetype to a IExpression?

[Visual Basic]
Public Overrides Overloads Sub CanConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal sourceType As Type _
)
[C#]
public override bool CanConvertFrom(
   ITypeDescriptorContext context,
   Type sourceType
);

Parameters

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

Return Value

true if the conversion is possible.

Remarks

Currently only supports conversion from a String instance.

See Also

ExpressionConverter Class | Spring.Expressions Namespace | ExpressionConverter.CanConvertFrom Overload List