Hi all;
Can you have an array as a property of a managed class in Microsoft C++
without having to use the gcnew function to allocate memory for the array?
This will not compile:
public ref class foo_class
{ int array01[22]; }
Is there another way to get the array to be within the same block of memory
as that for the instance of the class?
Can this be done in any way other than having to do the following?:
public ref class foo_class
{
array<int> ^ array01;
foo_class ()
{ array01 = gcnew <int> (22); }
}
Thanks!!!