Search Results for

    Show / Hide Table of Contents

    Class FunctionCall

    Ast Node representing a function call, e.g. in

    From X In Timesheet Where X.Description = :Iif(X.BeginTime > #2012-10-10#, "Some Description", "Some OtherDescription") Select X

    an instance of this class represents the ':Iif(X.BeginTime > #2012-10-10#, "Some Description", "Some OtherDescription")' function call and holds the parameter expressions as members (the Arguments collection).

    Inheritance
    System.Object
    Node
    Expression
    FunctionCall
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.QueryLanguage.Syntax
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class FunctionCall : Expression

    Constructors

    FunctionCall(String, IEnumerable<Expression>)

    Initializes a new instance of the FunctionCall class.

    Declaration
    public FunctionCall(string functionName, IEnumerable<Expression> arguments)
    Parameters
    Type Name Description
    System.String functionName

    The name of the function to invoke.

    System.Collections.Generic.IEnumerable<Expression> arguments

    The parameters to the function.

    Properties

    Arguments

    Gets the parameter expressions.

    Declaration
    public ReadOnlyCollection<Expression> Arguments { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ReadOnlyCollection<Expression>

    FunctionName

    Gets the name of the function that is to be called, without leading ':'

    Declaration
    public string FunctionName { get; }
    Property Value
    Type Description
    System.String

    Methods

    Accept(Visitor)

    Dispatches to the correct VisitQuery(Query) method.

    Declaration
    public override Node Accept(Visitor visitor)
    Parameters
    Type Name Description
    Visitor visitor

    The visitor to dispatch to.

    Returns
    Type Description
    Node

    Returns the node value returned by VisitQuery(Query).

    Overrides
    Node.Accept(Visitor)
    In This Article
    Back to top Copyright © 2020 software architects gmbh