C# Class Castle.MicroKernel.SubSystems.Conversion.AbstractTypeConverter

Inheritance: ITypeConverter
Mostrar archivo Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
CanHandleType ( Type type ) : bool
CanHandleType ( Type type, IConfiguration configuration ) : bool

Returns true if this instance of ITypeConverter is able to handle the specified type with the specified configuration

The default behavior is to just pass it to the normal CanHadnleType peeking into the configuration is used for some advanced functionality

PerformConversion ( IConfiguration configuration, Type targetType ) : object
PerformConversion ( String value, Type targetType ) : object

Method Details

CanHandleType() public abstract method

public abstract CanHandleType ( Type type ) : bool
type System.Type
return bool

CanHandleType() public method

Returns true if this instance of ITypeConverter is able to handle the specified type with the specified configuration
The default behavior is to just pass it to the normal CanHadnleType peeking into the configuration is used for some advanced functionality
public CanHandleType ( Type type, IConfiguration configuration ) : bool
type System.Type
configuration IConfiguration
return bool

PerformConversion() public abstract method

public abstract PerformConversion ( IConfiguration configuration, Type targetType ) : object
configuration IConfiguration
targetType System.Type
return object

PerformConversion() public abstract method

public abstract PerformConversion ( String value, Type targetType ) : object
value String
targetType System.Type
return object