Skip to content

Usings

Component rendering csharp using directive

import { Usings } from "@alloy-js/csharp";
<Usings namespaces={(NamespaceSymbol | string)[]} />
namespaces([unresolved link] | string)[]

Namespace symbols or namespace names to use to generate using statements.

<Usings namespaces={["System", "Models"]} />

will render

using Models;
using System;