Skip to content

Parameter

Define a parameter to be used in class or interface method.

import { Parameter } from "@alloy-js/csharp";
<Parameter
attributes={AttributesProp}
default={Children}
name={string | Namekey}
optional
refkey={Refkey}
type={Children}
/>
attributesoptionalAttributesProp

Define attributes to attach

defaultoptionalChildren

Default value for the parameter

namestring | Namekey
optionaloptionalboolean

If the parmaeter is optional(without default value)

refkeyoptionalRefkey
typeChildren