Metalama (preview)API documentationAspect APIMetalama.​Framework.​CodeIObject­Creation­Expression
Open sandboxFocus

IObjectCreationExpression Interface

A compile-time representation of a run-time object creation expression.

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

Methods

Name Description
WithObjectInitializer(params (IFieldOrProperty FieldOrProperty, IExpression Value)[])
WithObjectInitializer(params (string FieldOrPropertyName, IExpression Value)[])

Extension Methods

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