C# Class StructureMap.Graph.Constructor

显示文件 Open project: visit/structuremap Class Usage Examples

Public Methods

Method Description
CanBeAutoFilled ( ) : bool
Constructor ( Type pluggedType ) : System
Constructor ( Type pluggedType, ConstructorInfo ctor ) : System
FindArgumentType ( string name ) : Type
FindFirstConstructorArgumentOfType ( Type type ) : string
GetConstructor ( Type pluggedType ) : ConstructorInfo

Returns the System.Reflection.ConstructorInfo for the PluggedType. Uses either the "greediest" constructor with the most arguments or the constructor function marked with the [DefaultConstructor]

GetGreediestConstructor ( Type TPluggedType ) : ConstructorInfo
HasArguments ( ) : bool
HasConstructors ( Type pluggedType ) : bool
IsValid ( ) : bool
UseConstructor ( Expression expression ) : void
Visit ( IArgumentVisitor visitor ) : void

Private Methods

Method Description
visitParameter ( ParameterInfo info, Type parameterType, IArgumentVisitor visitor ) : void

Method Details

CanBeAutoFilled() public method

public CanBeAutoFilled ( ) : bool
return bool

Constructor() public method

public Constructor ( Type pluggedType ) : System
pluggedType System.Type
return System

Constructor() public method

public Constructor ( Type pluggedType, ConstructorInfo ctor ) : System
pluggedType System.Type
ctor System.Reflection.ConstructorInfo
return System

FindArgumentType() public method

public FindArgumentType ( string name ) : Type
name string
return System.Type

FindFirstConstructorArgumentOfType() public method

public FindFirstConstructorArgumentOfType ( Type type ) : string
type System.Type
return string

GetConstructor() public static method

Returns the System.Reflection.ConstructorInfo for the PluggedType. Uses either the "greediest" constructor with the most arguments or the constructor function marked with the [DefaultConstructor]
public static GetConstructor ( Type pluggedType ) : ConstructorInfo
pluggedType System.Type
return System.Reflection.ConstructorInfo

GetGreediestConstructor() public static method

public static GetGreediestConstructor ( Type TPluggedType ) : ConstructorInfo
TPluggedType System.Type
return System.Reflection.ConstructorInfo

HasArguments() public method

public HasArguments ( ) : bool
return bool

HasConstructors() public static method

public static HasConstructors ( Type pluggedType ) : bool
pluggedType System.Type
return bool

IsValid() public method

public IsValid ( ) : bool
return bool

UseConstructor() public method

public UseConstructor ( Expression expression ) : void
expression System.Linq.Expressions.Expression
return void

Visit() public method

public Visit ( IArgumentVisitor visitor ) : void
visitor IArgumentVisitor
return void