会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
xlzhu's dotnet world
喜欢Google的软件、微软的技术......
博客园
首页
新随笔
联系
订阅
管理
2004年4月28日
C#中的ref参数问题
摘要: 先看一段代码: ClassA {public string name;} Class B : ClassA {} public static void Main() {ClassB b = new ClassB(); b.name = "I'm class b"; //如果用Test(ref b)的话,编译会提示无法转换ClassB到ClassA Console.WriteLine(Test(re...
阅读全文
posted @ 2004-04-28 18:24 xlzhu
阅读(2838)
评论(11)
推荐(0)
编辑
公告