一、一个问号
var s="abcdef";
var r=s==null?"":s;
等同于:
if(s==null) r="";
else
r=s;
二、两个问号
var t= (object) (ExcelHelper.ToExcelColumnLabel(position.ColIndex) ?? "?")
等同于:
if(ExcelHelper.ToExcelColumnLabel(position.ColIndex)==null){t="?"}
else
{
t=(object) (ExcelHelper.ToExcelColumnLabel(position.ColIndex);
}