I would be grateful if somebody tell me how should I declare a dynamic multidimensional array in ref class? Can somebody post a sample code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you can afford array reallocations, then use the
arraytype.You can either use the “array of arrays” construction
or just the multidimensional ones:
Everything is garbage-collected so you don’t worry about destroying them.
If you really need the “dynamic” arrays, then you might look for
System.Collections.Generic.List<T>and use “List of Lists”. Lists have the ToArray() method.EDIT:
The
arraytype in C++/CLI is a template:So you may use it for 1D-array without second argument.