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
Afficher le fichier Open project: castleproject/Windsor

Méthodes publiques

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

Private Methods

Méthode Description
GetConverterInstance ( Type type ) : ITypeConverter
TryGetConverterInstance ( Type type ) : ITypeConverter

Method Details

CanHandleType() public méthode

public CanHandleType ( Type type ) : bool
type System.Type
Résultat bool

PerformConversion() public méthode

public PerformConversion ( IConfiguration configuration, Type targetType ) : object
configuration IConfiguration
targetType System.Type
Résultat object

PerformConversion() public méthode

public PerformConversion ( string value, Type targetType ) : object
value string
targetType System.Type
Résultat object