how to make a function in C#?
i know that for making vb sub's i do private void <name>..but how do i do functions?
Printable View
how to make a function in C#?
i know that for making vb sub's i do private void <name>..but how do i do functions?
replace void with the return type
PHP Code:int myaddingfunction(int x,int y)
{
return (x+y);
}