Change the value of variables in non-recursive methods

Ali P S

Member
Joined
Jul 26, 2014
Messages
5
e.g.
C#:
void method(a, b, x, y)
{
    //how to do these:
    //x = a * b;
    //y = a / b;
}
 

Ali P S

Member
Joined
Jul 26, 2014
Messages
5
So
C#:
void method(double a, double b, out double x, out double y)
{
    x = a * b;
    y = a / b;
}
Thnx
 
Top Bottom