954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Array object syntax

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)
}
cangan
Newbie Poster
16 posts since Jan 2012
Reputation Points: 11
Solved Threads: 0
 

See this tutorial for C# arrays

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

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.

cangan
Newbie Poster
16 posts since Jan 2012
Reputation Points: 11
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: