if (null == returnValue)
{
//
// If there is no cart, create it now
//
returnValue = new Cart();
//
// Save it for later
//
Session.Add(KEY_CACHECART, returnValue);
}
为什么比较要这样写?
null == returnValue
...全文
13310打赏收藏
null == returnValue为什么要这么写啊,
if (null == returnValue) { // // If there is no cart, create it now // returnValue = new Cart(); // // Save it for later // Session.Add(KEY_CACHECART, returnValue); } 为什么比较要这样写? null == returnValue