InvocationExpression
A call to a function or method.
import { InvocationExpression } from "@alloy-js/csharp";
<InvocationExpression args={Children[]} target={Children} typeArgs={Children[]} />import { InvocationExpression } from "@alloy-js/csharp/stc";
InvocationExpression({ args: Children[], target: Children, typeArgs: Children[],}).children(children)| args | optionalChildren[]Arguments to pass to the invocation. |
| target | Children |
| typeArgs | optionalChildren[]Generic type arguments for the invocation. |
Example
Section titled “Example”<InvocationExpression target="Foo" typeArgs={["T"]} args={["x"]} />Renders to:
Foo<T>("x");