Method
import { Method } from "@alloy-js/csharp";
<Method abstract async attributes={AttributesProp} doc={Children} expression extern file internal name={string | Namekey} override parameters={Array<ParameterProps>} private protected public readonly refkey={Refkey} returns={Children} sealed static typeParameters={(TypeParameterProps | string)[]} virtual> {children}</Method>import { Method } from "@alloy-js/csharp/stc";
Method({ abstract: boolean, async: boolean, attributes: AttributesProp, doc: Children, expression: boolean, extern: boolean, file: boolean, internal: boolean, name: string | Namekey, override: boolean, parameters: Array<ParameterProps>, private: boolean, protected: boolean, public: boolean, readonly: boolean, refkey: Refkey, returns: Children, sealed: boolean, static: boolean, typeParameters: (TypeParameterProps | string)[], virtual: boolean,}).children(children)| abstract | optional boolean | |
| async | optional boolean | If true, the method will be declared as an async method. |
| attributes | optional AttributesProp | Define attributes to attach |
| children | optional Children | |
| doc | optional Children | Doc comment |
| expression | optional boolean | Use expression syntax for the method. |
| extern | optional boolean | |
| file | optional boolean | |
| internal | optional boolean | |
| name | string | Namekey | |
| override | optional boolean | |
| parameters | optional Array<ParameterProps> | An array of parameter descriptors. |
| private | optional boolean | |
| protected | optional boolean | |
| public | optional boolean | |
| readonly | optional boolean | |
| refkey | optional Refkey | |
| returns | optional Children | |
| sealed | optional boolean | |
| static | optional boolean | |
| typeParameters | optional (TypeParameterProps | string)[] | Type parameters for the method |
| virtual | optional boolean |