Method
import { Method } from "@alloy-js/csharp";
<Method abstract async attributes={AttributesProp} doc={Children} expression extern file internal name="string" 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, 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 | optionalboolean |
async | optionalboolean If true, the method will be declared as an async method. |
attributes | optionalAttributesProp Define attributes to attach |
children | optionalChildren |
doc | optionalChildren Doc comment |
expression | optionalboolean Use expression syntax for the method. |
extern | optionalboolean |
file | optionalboolean |
internal | optionalboolean |
name | string |
override | optionalboolean |
parameters | optionalArray<ParameterProps> |
private | optionalboolean |
protected | optionalboolean |
public | optionalboolean |
readonly | optionalboolean |
refkey | optionalRefkey |
returns | optionalChildren |
sealed | optionalboolean |
static | optionalboolean |
typeParameters | optional(TypeParameterProps | string)[] Type parameters for the method |
virtual | optionalboolean |