Class QuotationDataType
Represents a function quotation data type, i.e. an expression representation of a function.
Inherited Members
Namespace: Nuqleon.DataModel.TypeSystem
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
public class QuotationDataType : DataType
Properties
Function
Gets the type of the function represented by the quotation.
Declaration
public FunctionDataType Function { get; }
Property Value
Type | Description |
---|---|
FunctionDataType |
Kind
Gets the kind of the data type.
Declaration
public override DataTypeKinds Kind { get; }
Property Value
Type | Description |
---|---|
DataTypeKinds |
Overrides
Methods
CreateInstance(Object[])
Creates a new instance of the function quotation data type.
Declaration
public override object CreateInstance(params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | arguments | Only one parameter can be specified, containing the function quotation object. |
Returns
Type | Description |
---|---|
System.Object | Instance of the function quotation data type. |
Overrides
GetExpression(Object)
Gets a strongly typed function quotation expression over a value to conforms to the data type.
Declaration
public LambdaExpression GetExpression(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Object to get a strongly typed expression for. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.LambdaExpression | Strongly typed function quotation expression over the given value. |