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} />
import { Parameter } from "@alloy-js/csharp/stc";
Parameter({ attributes: AttributesProp, default: Children, name: string | Namekey, optional: boolean, refkey: Refkey, type: Children,}).children(children)
attributes | optionalAttributesProp Define attributes to attach |
default | optionalChildren Default value for the parameter |
name | string | Namekey |
optional | optionalboolean If the parmaeter is optional(without default value) |
refkey | optionalRefkey |
type | Children |