Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# functions

// In C#, this is how we define a function:
/*
In this case, the function is called 'myFunction', it takes
1 parameter which is an integer and doesn't return anything (void).
*/
static void myFunction(int a)
{
  // INSERT CODE HERE
  Console.WriteLine(a);
}
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #functions
ADD COMMENT
Topic
Name
7+2 =