, .
3 :
1. ( )
2.
3.
( ), . ( ) , . (, ). , . . . . . .
:
1. ( ) . . .
2. , . , .. . out.
3. - , . ref.
.
? , 0. , , ( ). , , . . .
. . . (.. , ). ref out. , .
:
, .
class_Example
{
Public_static_void_Mov (ref int x, ref int y, int d)
{
x=x+d;
y=y+d;
}
public_static_void_Main()
{
int a=4, b=3, d=10;
Move (ref a, ref b, d);
}
}
, . . , . . . 14 13 4 3.
, .
class_Example
{