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

Inheritance: AbstractTypeConverter
Afficher le fichier Open project: nats/castle-1.0.3-mono

Private Properties

Свойство Type Description
ChooseConstructor System.Reflection.ConstructorInfo
ConvertChildParameter object
ConvertConstructorParameters object[]
ConvertPropertyValues void
CreateInstance object
FindChildIgnoreCase IConfiguration

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
ChooseConstructor ( Type type ) : ConstructorInfo

Chooses the first non default constructor. Throws an exception if more than one non default constructor is found

ConvertChildParameter ( IConfiguration config, Type type ) : object
ConvertConstructorParameters ( ConstructorInfo constructor, IConfiguration configuration ) : object[]

Converts the constructor parameters.

ConvertPropertyValues ( object instance, Type type, IConfiguration configuration ) : void

Converts the property values.

CreateInstance ( Type type, IConfiguration configuration ) : object

Creates the target type instance.

FindChildIgnoreCase ( IConfiguration config, string name ) : IConfiguration

Finds the child (case insensitive).

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