CSharp examples for Custom Type:Method
A method performs an action in a series of statements.
A method's signature must be unique within the type.
A method's signature comprises its name and parameter types, but not the parameter names, nor the return type.
Methods allow the following modifiers:
Static modifier | static |
---|---|
Access modifiers | public internal private protected |
Inheritance modifiers | new virtual abstract override sealed |
Partial method modifier | partial |
Unmanaged code modifiers | unsafe extern |
Asynchronous code modifier | async |