/// <summary> /// Initializes an instance of <see cref="MemberAccessNode"/> /// </summary> /// <param name="instance">Instance to access member of.</param> /// <param name="memberName">The member name to access.</param> public MemberAccessNode(QueryNode instance, string memberName) { this.Instance = instance; this.MemberName = memberName; }
/// <summary> /// Initializes an instance of <see cref="ConvertNode"/> /// </summary> /// <param name="source">The node to convert.</param> /// <param name="targetType">The type to convert the node to</param> public ConvertNode(QueryNode source, Type targetType) { this.Source = source; this.TargetType = targetType; }
/// <summary> /// Initializes an instance of <see cref="OrderByNode"/> /// </summary> /// <param name="expression">The order-by expression.</param> /// <param name="direction">The direction to order.</param> public OrderByNode(QueryNode expression, OrderByDirection direction) { this.Expression = expression; this.Direction = direction; }
/// <summary> /// Initializes an instance of <see cref="UnaryOperatorNode"/> /// </summary> /// <param name="kind"></param> /// <param name="operand"></param> public UnaryOperatorNode(UnaryOperatorKind kind, QueryNode operand) { this.OperatorKind = kind; this.Operand = operand; }
/// <summary> /// Initializes instance of <see cref="BinaryOperatorNode"/> /// </summary> /// <param name="kind">The kind of this node.</param> /// <param name="left">The left operand.</param> /// <param name="right">The right operand.</param> public BinaryOperatorNode(BinaryOperatorKind kind, QueryNode left, QueryNode right) { this.OperatorKind = kind; this.LeftOperand = left; this.RightOperand = right; }