Class ChangeTypeExpression
- Namespace
- LinqToDB.Internal.Expressions
- Assembly
- linq2db.dll
public sealed class ChangeTypeExpression : Expression
- Inheritance
-
objectChangeTypeExpression
- Inherited Members
- Extension Methods
Constructors
ChangeTypeExpression(Expression, Type)
public ChangeTypeExpression(Expression expression, Type type)
Parameters
expressionExpressiontypeType
Fields
ChangeTypeType
public const ExpressionType ChangeTypeType = (ExpressionType)1000
Field Value
Properties
Expression
public Expression Expression { get; }
Property Value
NodeType
Gets the node type of this Expression.
public override ExpressionType NodeType { get; }
Property Value
- ExpressionType
One of the ExpressionType values.
Type
Gets the static type of the expression that this Expression represents.
public override Type Type { get; }
Property Value
Methods
Accept(ExpressionVisitor)
Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall(MethodCallExpression).
protected override Expression Accept(ExpressionVisitor visitor)
Parameters
visitorExpressionVisitorThe visitor to visit this node with.
Returns
- Expression
The result of visiting this node.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a textual representation of the Expression.
public override string ToString()
Returns
- string
A textual representation of the Expression.
Update(Expression)
public ChangeTypeExpression Update(Expression expression)
Parameters
expressionExpression