C# Class Ninject.Parameters.PropertyValue

Overrides the injected value of a property.
Inheritance: Parameter, IPropertyValue
Show file Open project: ninject/Ninject

Public Methods

Method Description
PropertyValue ( string name, Func valueCallback ) : System

Initializes a new instance of the PropertyValue class.

PropertyValue ( string name, object>.Func valueCallback ) : System

Initializes a new instance of the PropertyValue class.

PropertyValue ( string name, object value ) : System

Initializes a new instance of the PropertyValue class.

Method Details

PropertyValue() public method

Initializes a new instance of the PropertyValue class.
public PropertyValue ( string name, Func valueCallback ) : System
name string The name of the property to override.
valueCallback Func The callback to invoke to get the value that should be injected.
return System

PropertyValue() public method

Initializes a new instance of the PropertyValue class.
public PropertyValue ( string name, object>.Func valueCallback ) : System
name string The name of the property to override.
valueCallback object>.Func The callback to invoke to get the value that should be injected.
return System

PropertyValue() public method

Initializes a new instance of the PropertyValue class.
public PropertyValue ( string name, object value ) : System
name string The name of the property to override.
value object The value to inject into the property.
return System