Expression Constructors

Definition

Constructs a new instance of Expression.

Overloads

Expression()

Constructs a new instance of Expression.

Expression(ExpressionType, Type)
Obsolete.
Obsolete.

Initializes a new instance of the Expression class.

Expression()

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Constructs a new instance of Expression.

C#
protected Expression();

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Expression(ExpressionType, Type)

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Caution

This constructor has been deprecated. Use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.

Caution

use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.

Initializes a new instance of the Expression class.

C#
[System.Obsolete("This constructor has been deprecated. Use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.")]
protected Expression(System.Linq.Expressions.ExpressionType nodeType, Type type);
C#
[System.Obsolete("use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.")]
protected Expression(System.Linq.Expressions.ExpressionType nodeType, Type type);
C#
protected Expression(System.Linq.Expressions.ExpressionType nodeType, Type type);

Parameters

nodeType
ExpressionType

The ExpressionType to set as the node type.

type
Type

The Type of this Expression.

Attributes

Remarks

This constructor is called from constructors in derived classes.

Applies to

.NET 10 and other versions
Product Versions (Obsolete)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10)
.NET Framework 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard (2.0, 2.1)