I'd like to know how in C++/CLI it is possible to check whether an ArrayList is existent.
System::Collections::ArrayList %queue_tx
I tried if ( nullptr != queue_tx ) { queue_tx.Add(msg); }
but that didn't work. I'm passing queue_tx
as a parameter to a function and there's supposed to be the possibility of this parameter not being set (or being set to nullptr
).
The compiler throws '!=' : no conversion from 'System::Collections::ArrayList' to 'nullptr'
.
How do I do this?