会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
thornfiled_he
博客园
首页
新随笔
联系
订阅
管理
2009年5月3日
?? 运算符 和三元运算符
摘要: 如果 ?? 运算符的左操作数非 null,该运算符将返回左操作数,否则返回右操作数。 示例: // nullable_type_operator.cs using System; class MainClass { static int? GetNullableInt() { return null; } static string GetStringValue() { return null;...
阅读全文
posted @ 2009-05-03 01:27 何翔华
阅读(730)
评论(1)
推荐(0)
编辑
公告