6 [DebuggerTypeProxy(typeof(ConstantExpressionProxy))]
7 [global::__DynamicallyInvokable]
10 private readonly
object _value;
14 [global::__DynamicallyInvokable]
17 [global::__DynamicallyInvokable]
22 return typeof(
object);
24 return _value.GetType();
30 [global::__DynamicallyInvokable]
33 [global::__DynamicallyInvokable]
42 [global::__DynamicallyInvokable]
45 [global::__DynamicallyInvokable]
57 internal static ConstantExpression Make(
object value,
Type type)
59 if ((value ==
null && type == typeof(
object)) || (value !=
null && value.GetType() == type))
61 return new ConstantExpression(value);
63 return new TypedConstantExpression(value, type);
69 [global::__DynamicallyInvokable]
Represents an expression that has a constant value.
object Value
Gets the value of the constant expression.
virtual internal Expression VisitConstant(ConstantExpression node)
Visits the T:System.Linq.Expressions.ConstantExpression.
Provides the base class from which the classes that represent expression tree nodes are derived....
Represents type declarations: class types, interface types, array types, value types,...
ExpressionType
Describes the node types for the nodes of an expression tree.
sealed override ExpressionType NodeType
Returns the node type of this Expression. Extension nodes should return F:System.Linq....
internal override Expression Accept(ExpressionVisitor visitor)
Dispatches to the specific visit method for this node type. For example, T:System....
Represents a visitor or rewriter for expression trees.