call a function c#

C#
void draw() {
	//code here
}

//Calls the function every frame making nice and satisfying movement
void Update() {
	draw()
}
Source

Also in C#: