Skip to content

MethodScope

import { MethodScope } from "@alloy-js/csharp";
<MethodScope value={OutputScope} />
childrenoptionalChildren
valueScope context interface

The scope to use. If not provided, a new scope will be created.

import { MethodScope } from "@alloy-js/csharp";
<MethodScope
metadata={Record<string, unknown>}
name="string"
ownerSymbol={OutputSymbol}
/>
childrenoptionalChildren
metadataoptionalRecord<string, unknown>

Additional metadata for the scope.

nameoptionalstring

The name of this scope.

ownerSymboloptionalMemberDeclaration context interface

Create a member scope with the owner symbol providing the in-scope symbols.