C++ managed array size
I have t开发者_如何学Pythonhis
function(array<Object^>^ a)
How do I know the length of this array? Like C++, the size has to come with the function?
Thanks,
Function in your case:
function(array<Object^>^ a) {
auto len = a->Length
}
Remember that All of you classes are from the .net library so in the general case you can allays looks at the generic .net documentation. Here is the array class docs.
精彩评论