mono / Embeddinator-4000

Tools to turn .NET libraries into native libraries that can be consumed on Android, iOS, Mac, Linux and other platforms.
MIT License
758 stars 95 forks source link

Multi-dimensional arrays #323

Open rolfbjarne opened 7 years ago

rolfbjarne commented 7 years ago

Looking at PR #321 I wondered how (if?) we support multi-dimensional arrays:

public void StringArr (string [][] strArr)
public void StringArr (string [,] strArr)
public void StringArrRef (ref string [][] strArr)
public void StringArrRef (ref string [,] strArr)

I think we can support the [][] variant (it's just an array of arrays), but the other variant ([,]) probably not because NSArray doesn't support multiple dimensions.

spouliot commented 7 years ago

@dalexsoto please add them to the tests, minimally started with a warning that it's not supported (and make sure we don't generate code that won't work).