C# ?? 语法

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

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

导航