Getting dimensions of array from MetaData

I'm trying to obtain multidimensional array a[x1,x2,x3,...,xN] properties from unmanaged metadata signatures using IMetaDataImport interface and CorSigUncompressData method.
I can successfully get array rank - N. But while getting number of elements in any specific dimension I get only zeroes. I think it's not normal. Maybe there are another ways to obtain such information from unmanaged code?
Thnx
[420 byte] By [VitalyPimenov] at [2008-2-17]
# 1
I don't know it for sure but I think the upper bound and lower bound info should be somewhere and I don't think there is a direct API thatcan get out the number of elements.

Thanks.

Yiru at 2007-9-9 > top of Msdn Tech,.NET Development,Common Language Runtime...
# 2
Can you show us your code? Have you checked the ArrayShape signature definition in the CLI docs so you know what to expect?
MattiasSj?gren at 2007-9-9 > top of Msdn Tech,.NET Development,Common Language Runtime...

.NET Development

Site Classified