Class ExpressionDataType
Represents an expression data type, i.e. a code-as-data representation.
Inherited Members
Namespace: Nuqleon.DataModel.TypeSystem
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
public class ExpressionDataType : DataType
Properties
Kind
Gets the kind of the data type.
Declaration
public override DataTypeKinds Kind { get; }
Property Value
Type | Description |
---|---|
DataTypeKinds |
Overrides
Type
Gets the underlying type used to represent the expression.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
CreateInstance(Object[])
Creates a new instance of the expression 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 expression object. |
Returns
Type | Description |
---|---|
System.Object | Instance of the expression data type. |
Overrides
GetExpression(Object)
Gets a strongly typed expression over a value to conforms to the data type.
Declaration
public Expression GetExpression(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Object to get a strongly typed expression for. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | Strongly typed expression over the given value. |