原创 ref 和out

1、ref傳進去的參數必須在調用前初始化,out不必,即:int i;SomeMethod( ref i );//語法錯誤SomeMethod( out i );//通過   2、ref傳進去的參數在函數內部可以直接使用,而out不