Parameter
Define a parameter to be used in class or interface method.
import { Parameter } from "@alloy-js/csharp";
<Parameter default={Children} name="string" optional refkey={Refkey} symbol={OutputSymbol} type={Children} />
import { Parameter } from "@alloy-js/csharp/stc";
Parameter({ default: Children, name: string, optional: boolean, refkey: Refkey, symbol: OutputSymbol, type: Children,}).children(children)
Props
default | optionalChildren Default value for the parameter |
name | string |
optional | optionalboolean If the parmaeter is optional(without default value) |
refkey | optionalRefkey |
symbol | optionalMemberDeclaration context interface |
type | Children |