1
我在這樣一個地方什麼是C++ CLI等價於vb的Nothing?
generic <typename ItemType> where ItemType : ItemBase
public ref class Container {
ItemType GetItem(int i) {
...
if (someSpecialCondition) return ???
...
}
};
我想回到VB的「無」的等同,但不能找出語法吧。它不喜歡null或nullptr,我非常瞭解。