Class InstanceFactoryBase
Base class for instance factories.
Inheritance
System.Object
InstanceFactoryBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:Extend
Assembly:Extend.dll
Syntax
public abstract class InstanceFactoryBase : IInstanceFactory
Constructors
| Improve this Doc View SourceInstanceFactoryBase(String, String)
Initializes a new instance of the InstanceFactoryBase class.
Declaration
protected InstanceFactoryBase(string name, string description)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the factory. |
System.String | description | The description of the factory. |
Properties
| Improve this Doc View SourceFactoryDescription
Gets the description of the factory.
Declaration
public string FactoryDescription { get; }
Property Value
Type | Description |
---|---|
System.String | The description of the factory. |
Implements
| Improve this Doc View SourceFactoryName
Gets the name of the factory.
Declaration
public string FactoryName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the factory. |
Implements
| Improve this Doc View SourceSelectionRules
Gets the selection rules of the factory.
Declaration
public List<IMemberSelectionRule> SelectionRules { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><IMemberSelectionRule> | The selection rules of the factory. |
Implements
Methods
| Improve this Doc View SourceAddSelectionRule(IMemberSelectionRule)
Adds the given IMemberSelectionRule to the factory.
Declaration
public IInstanceFactory AddSelectionRule(IMemberSelectionRule memberSelectionRule)
Parameters
Type | Name | Description |
---|---|---|
IMemberSelectionRule | memberSelectionRule | The IMemberSelectionRule to add. |
Returns
Type | Description |
---|---|
IInstanceFactory | Returns the modified factory. |
Implements
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | memberSelectionRule can not be null. |
CreateValue(IMemberInformation)
Gets the value for the given IMemberInformation.
Declaration
public abstract 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. |
Implements
| Improve this Doc View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()