C# ?? 语法

str??"asdasd"
相当于
if(str==null)
     return "asdasd";
else
    return str;

posted on 2012-07-26 11:20  ~~小麦  阅读(112)  评论(0编辑  收藏  举报

导航