Metalama (preview)API documentationAspect APIMetalama.​Framework.​CodeIExpression
Open sandboxFocus

IExpression Interface

A compile-time representation of a run-time expression. To create an expression, use ExpressionFactory or ExpressionBuilder. Note that IField, IProperty and IParameter also implement the IExpression interface.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
[Hidden]
public interface IExpression : IHasType

Properties

Name Description
IsAssignable

Gets a value indicating whether the Value can be set.

Value

Gets syntax for the current IExpression.

Extension Methods

ExpressionFactory.CastTo(IExpression, IType)
ExpressionFactory.CastTo(IExpression, Type)
ExpressionFactory.CastTo<T>(IExpression)
ExpressionFactory.WithNullability(IExpression, bool)
ExpressionFactory.WithType(IExpression, IType)