//
// MyClass definition
public class MyClass
{
public int Value;
}
//
// Tester methods
public static void TestRef(ref MyClass m)
{
m
}
public static void TestNoRef(MyClass m)
{
m
}
public static void TestCreateRef(ref MyClass m)
{
m = new MyClass();
m
}
public static void TestCreateNoRef(MyClass m)
{
m = new MyClass();
m
}
public static void
{
MyClass m = new MyClass();
m
TestRef(ref m);
Console
TestNoRef(m);
Console
TestCreateRef(ref m);
Console
TestCreateNoRef(m);
Console
}
大家能馬上給出正確的答案麼?如果能
[
From:http://tw.wingwit.com/Article/program/net/201311/15039.html