Interface IInstanceFactory
Interface representing a value factory.
Namespace:Extend
Assembly:Extend.dll
Syntax
public interface IInstanceFactory
Properties
| Improve this Doc View SourceFactoryDescription
Gets the description of the factory.
Declaration
string FactoryDescription { get; }
Property Value
Type | Description |
---|---|
System.String | The description of the factory. |
FactoryName
Gets the name of the factory.
Declaration
string FactoryName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the factory. |
SelectionRules
Gets the selection rules of the factory.
Declaration
List<IMemberSelectionRule> SelectionRules { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><IMemberSelectionRule> | The selection rules of the factory. |
Methods
| Improve this Doc View SourceAddSelectionRule(IMemberSelectionRule)
Adds the given IMemberSelectionRule to the factory.
Declaration
IInstanceFactory AddSelectionRule(IMemberSelectionRule memberSelectionRule)
Parameters
Type | Name | Description |
---|---|---|
IMemberSelectionRule | memberSelectionRule | The IMemberSelectionRule to add. |
Returns
Type | Description |
---|---|
IInstanceFactory | Returns the modified factory. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | memberSelectionRule can not be null. |
CreateValue(IMemberInformation)
Gets the value for the given IMemberInformation.
Declaration
object CreateValue(IMemberInformation memberInformation)
Parameters
Type | Name | Description |
---|---|---|
IMemberInformation | memberInformation | Information about the member to create a value for. |
Returns
Type | Description |
---|---|
System.Object | Returns the created value. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | memberSelectionRule can not be null. |