Class RefAnyValExpression
Represents expression that is equivalent to __refvalue C# undocumented keyword
or refanyval IL instruction.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class RefAnyValExpression : CustomExpression
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 TypedReference. |
| Type | referenceType | The type of the managed reference. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
Properties
| Improve this Doc View SourceReferenceType
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 |
Overrides
| Improve this Doc View SourceTypedReferenceVar
Gets a variable that holds the value of type TypedReference.
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. |