How to return value from function? (translate actionscript to 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:43 UTC
Read the original article
Hit count: 136
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