Class ExpressionInstanceFactory
Factory used to create values for instance members.
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 class ExpressionInstanceFactory : InstanceFactoryBase, IInstanceFactory
Constructors
| Improve this Doc View SourceExpressionInstanceFactory(Func<IMemberInformation, Object>, String, String)
Creates a new instance of the ExpressionInstanceFactory class.
Declaration
public ExpressionInstanceFactory(Func<IMemberInformation, object> factory, string name = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult><IMemberInformation, System.Object> | factory | The factory. |
System.String | name | The name of the factory. |
System.String | description | The description of the factory. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | factory can not be null. |
Methods
| Improve this Doc View SourceCreateValue(IMemberInformation)
Gets the value for the given IMemberInformation.
Declaration
public override 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. |