SourceFile
A C# source file exists within the context of a namespace contains using statements and declarations
Props for SourceFile component
import { SourceFile } from "@alloy-js/csharp";
<SourceFile header={Children} headerComment="string" path="string" using={string[]}> {children}</SourceFile>import { SourceFile } from "@alloy-js/csharp/stc";
SourceFile({ header: Children, headerComment: string, path: string, using: string[],}).children(children)| children | optional Children | Source file content |
| header | optional Children | |
| headerComment | optional string | |
| path | string | Path of the source file |
| using | optional string[] | A list of using directives to explicitly include. Note that providing explicit usings is not necessary when referencing symbols via refkeys. |