using System;
class MethodCall
{
public static void Main()
{
/*
* 參數類型分為 in
* in 類型在子方法中修改了對應變量後
* ref 類型在子方法中修改了對應變量後
* out 主方法中對應的變量不需要初始化
*
*/
int a =
Console
AMethod(a
Console
}
public static void AMethod(int x
{
x =
y =
z =
}
}
From:http://tw.wingwit.com/Article/program/net/201311/13197.html