C ++ managed array size

I have it

function(array<Object^>^ a) 

How to find out the length of this array? Like C ++, size must have a function?

Thanks,

+6
source share
2 answers

Remember that all your classes are taken from the .net library, so in the general case you can view the general .net documentation. Here is an array of docs .

+3
source

Function in your case:

 function(array<Object^>^ a) { auto len = a->Length } 
+5
source

Source: https://habr.com/ru/post/885907/


All Articles