C# Класс StructureMap.Graph.Constructor

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
visitParameter ( ParameterInfo info, Type parameterType, IArgumentVisitor visitor ) : void

Описание методов

CanBeAutoFilled() публичный Метод

public CanBeAutoFilled ( ) : bool
Результат bool

Constructor() публичный Метод

public Constructor ( Type pluggedType ) : System
pluggedType System.Type
Результат System

Constructor() публичный Метод

public Constructor ( Type pluggedType, ConstructorInfo ctor ) : System
pluggedType System.Type
ctor System.Reflection.ConstructorInfo
Результат System

FindArgumentType() публичный Метод

public FindArgumentType ( string name ) : Type
name string
Результат System.Type

FindFirstConstructorArgumentOfType() публичный Метод

public FindFirstConstructorArgumentOfType ( Type type ) : string
type System.Type
Результат string

GetConstructor() публичный статический Метод

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
Результат System.Reflection.ConstructorInfo

GetGreediestConstructor() публичный статический Метод

public static GetGreediestConstructor ( Type TPluggedType ) : ConstructorInfo
TPluggedType System.Type
Результат System.Reflection.ConstructorInfo

HasArguments() публичный Метод

public HasArguments ( ) : bool
Результат bool

HasConstructors() публичный статический Метод

public static HasConstructors ( Type pluggedType ) : bool
pluggedType System.Type
Результат bool

IsValid() публичный Метод

public IsValid ( ) : bool
Результат bool

UseConstructor() публичный Метод

public UseConstructor ( Expression expression ) : void
expression System.Linq.Expressions.Expression
Результат void

Visit() публичный Метод

public Visit ( IArgumentVisitor visitor ) : void
visitor IArgumentVisitor
Результат void