C# Class Spring.Expressions.ExpressionConverter

Converts string representation of expression into an instance of IExpression.
Inheritance: System.ComponentModel.TypeConverter
Exibir arquivo Open project: spring-projects/spring-net

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Can we convert from a the sourcetype to a IExpression?

Currently only supports conversion from a System.String instance.

ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

Convert from a System.String value to an IExpression instance.

Method Details

CanConvertFrom() public method

Can we convert from a the sourcetype to a IExpression?

Currently only supports conversion from a System.String instance.

public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext /// A /// that provides a format context. ///
sourceType System.Type /// A that represents the /// you want to convert from. ///
return bool

ConvertFrom() public method

Convert from a System.String value to an IExpression instance.
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext /// A /// that provides a format context. ///
culture System.Globalization.CultureInfo /// The to use /// as the current culture. ///
value object /// The value that is to be converted. ///
return object