HOW TO RETURN VALUE FROM FUNCTION? (c#)
Posted
by Ole Jak
on Stack Overflow
See other posts from Stack Overflow
or by Ole Jak
Published on 2010-04-24T15:30:37Z
Indexed on
2010/04/24
15:33 UTC
Read the original article
Hit count: 165
So... I want to return value when C# function is called. I need a code example (simple summ of a,b values will be ok) Please help
I need something like this ( I know ActionScript so I will write in it):
public function sum(valueA:int, valueB:int):int
{
var summ:int = valueA + valueB;
return summ;
}
How to translate it into C#?
© Stack Overflow or respective owner