Hi all,

I just need the array type of Person object. So it will be an array object.
Please some help.

void SomeOtherFunction() 
MyDataType ^Person = gcnew MyDataType(); // simple Person object  (C++/CLI)

Recommended Answers

See this tutorial for C# arrays

Jump to Post

All 2 Replies

Thanks .

void SomeOtherFnc() 
array<MyDataType^> ^DataObject = gcnew array<MyDataType^>(10);
DataObject[1] = gcnew MyDataType;
DataObject[1]->id = 2012;
textBox1->AppendText((Convert::ToString(DataObject[1]->id )));

PS.Actually its not that tutorial.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.