Class RefAnyValExpression
Represents expression that is equivalent to __refvalue C# undocumented keyword
or refanyval IL instruction.
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class RefAnyValExpression : Expression
Constructors
| Improve this Doc View SourceRefAnyValExpression(ParameterExpression, Type)
Initializes a new expression.
Declaration
public RefAnyValExpression(ParameterExpression typedRef, Type referenceType)
Parameters
| Type | Name | Description |
|---|---|---|
| ParameterExpression | typedRef | The variable of type |
| Type | referenceType | The type of the managed reference. |
Properties
| Improve this Doc View SourceCanReduce
Always returns true because
this expression is
Declaration
public override bool CanReduce { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
NodeType
Always returns
Declaration
public override ExpressionType NodeType { get; }
Property Value
| Type | Description |
|---|---|
| ExpressionType |
ReferenceType
Gets type of the managed reference.
Declaration
public Type ReferenceType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Type
Gets the type of this expression.
Declaration
public override Type Type { get; }
Property Value
| Type | Description |
|---|---|
| Type |
TypedReferenceVar
Gets a variable that holds the value of type
Declaration
public ParameterExpression TypedReferenceVar { get; }
Property Value
| Type | Description |
|---|---|
| ParameterExpression |
Methods
| Improve this Doc View SourceReduce()
Translates this expression into predefined set of expressions using Lowering technique.
Declaration
public override Expression Reduce()
Returns
| Type | Description |
|---|---|
| Expression | Translated expression. |