Usings
Component rendering csharp using directive
import { Usings } from "@alloy-js/csharp";
<Usings namespaces={(NamespaceSymbol | string)[]} />import { Usings } from "@alloy-js/csharp/stc";
Usings({ namespaces: (NamespaceSymbol | string)[] }).children(children)| namespaces | (NamespaceSymbol | string)[] | Namespace symbols or namespace names to use to generate using statements. |
Example
Section titled “Example”<Usings namespaces={["System", "Models"]} />
will render
using Models;
using System;