Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to define a function in c#

//The "void" in this instance refers to the return type of this function
//This function won't have a return value.
void functionName(int parameter) { 
  //Code you want to run
}
//Calls the code in the function
functionName(Aninteger)
 
PREVIOUS NEXT
Tagged: #define #function
ADD COMMENT
Topic
Name
8+2 =