Horje
function in c# Code Example
c# function
public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets 
//for a function
function in c#
//function example
using System;
					
public class Program
{
	static void function(){
		Console.WriteLine("I am a function!");
	}
	public static void Main()
	{
		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)




Csharp

Related
strings in c# Code Example strings in c# Code Example
c# clear console read chache Code Example c# clear console read chache Code Example
c# map function Code Example c# map function Code Example
how to cut a string in c# Code Example how to cut a string in c# Code Example
c# list get last element Code Example c# list get last element Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9