进来 || 出去

dotnet dotany

导航

IList 和out参数结合产生的比较奇怪的现象

public void test(out IList Users)
{
    Users.Add(new User("test"));
}

编译是通不过的.
提示方法离开前应该对users赋值.
按道理是应该通过的啊.

为什么?

posted on 2004-12-02 14:52  进来 || 出去  阅读(1139)  评论(8)    收藏  举报