c# function
public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets
//for a function
c# function
public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets
//for a function
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us