Skip to content

InvocationExpression

A call to a function or method.

import { InvocationExpression } from "@alloy-js/csharp";
<InvocationExpression
args={Children[]}
target={Children}
typeArgs={Children[]}
/>
argsoptionalChildren[]

Arguments to pass to the invocation.

targetChildren
typeArgsoptionalChildren[]

Generic type arguments for the invocation.

<InvocationExpression target="Foo" typeArgs={["T"]} args={["x"]} />

Renders to:

Foo<T>("x");