Skip to content

InvocationExpression

A call to a function or method.

import { InvocationExpression } from "@alloy-js/csharp";
<InvocationExpression
args={Children[]}
target={Children}
typeArgs={Children[]}
/>
argsoptional Children[]Arguments to pass to the invocation.
targetChildren
typeArgsoptional Children[]Generic type arguments for the invocation.
<InvocationExpression target="Foo" typeArgs={["T"]} args={["x"]} />

Renders to:

Foo<T>("x");