LANGUAGE
Method declaration
Declares a helper with one integer parameter and result.
Formal Syntax & Structure
csharp syntaxcsharp
static int Name(int x) { return x; }Working Example
Example Snippetcsharp
static int Double(int n) { return n * 2; }Declares a helper with one integer parameter and result.
static int Name(int x) { return x; }static int Double(int n) { return n * 2; }