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

Looks for a ConvertibleAttribute on the type to be converted. If found, the TypeConverter defined by the attribute is used to perform the conversion.
Inheritance: AbstractTypeConverter
Show file Open project: castleproject/Windsor

Public Methods

Method Description
CanHandleType ( Type type ) : bool
PerformConversion ( IConfiguration configuration, Type targetType ) : object
PerformConversion ( string value, Type targetType ) : object

Private Methods

Method Description
GetConverterInstance ( Type type ) : ITypeConverter
TryGetConverterInstance ( Type type ) : ITypeConverter

Method Details

CanHandleType() public method

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

PerformConversion() public method

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

PerformConversion() public method

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