C# Класс Ninject.Parameters.Parameter

Modifies an activation process in some way.
Наследование: IParameter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Equals ( IParameter other ) : bool

Indicates whether the current object is equal to another object of the same type.

Equals ( object obj ) : bool

Determines whether the object equals the specified object.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

GetValue ( IContext context, ITarget target ) : object

Gets the value for the parameter within the specified context.

Parameter ( string name, Func valueCallback, bool shouldInherit ) : System

Initializes a new instance of the Parameter class.

Parameter ( string name, object>.Func valueCallback, bool shouldInherit ) : System

Initializes a new instance of the Parameter class.

Parameter ( string name, object value, bool shouldInherit ) : System

Initializes a new instance of the Parameter class.

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

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

Indicates whether the current object is equal to another object of the same type.
public Equals ( IParameter other ) : bool
other IParameter An object to compare with this object.
Результат bool

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

Determines whether the object equals the specified object.
public Equals ( object obj ) : bool
obj object An object to compare with this object.
Результат bool

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

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

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

Gets the value for the parameter within the specified context.
public GetValue ( IContext context, ITarget target ) : object
context IContext The context.
target ITarget The target.
Результат object

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

Initializes a new instance of the Parameter class.
public Parameter ( string name, Func valueCallback, bool shouldInherit ) : System
name string The name of the parameter.
valueCallback Func The callback that will be triggered to get the parameter's value.
shouldInherit bool Whether the parameter should be inherited into child requests.
Результат System

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

Initializes a new instance of the Parameter class.
public Parameter ( string name, object>.Func valueCallback, bool shouldInherit ) : System
name string The name of the parameter.
valueCallback object>.Func The callback that will be triggered to get the parameter's value.
shouldInherit bool Whether the parameter should be inherited into child requests.
Результат System

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

Initializes a new instance of the Parameter class.
public Parameter ( string name, object value, bool shouldInherit ) : System
name string The name of the parameter.
value object The value of the parameter.
shouldInherit bool Whether the parameter should be inherited into child requests.
Результат System