This is easier with a list as there's a built in function, but if you need to do it to an array:
int IndexToRemove = 2;
array<MyClassOrVariableName^> ^MyClassOrVariableName1_temp = gcnew array<MyClassOrVariableName^>(MyClassOrVariableName1->Length - 1);
for (Count = 0; Count < MyClassOrVariableName1->Length; Count++)
{
if (Count < IndexToRemove)
MyClassOrVariableName1_temp[Count] = MyClassOrVariableName1[Count];
else if (Count > IndexToRemove)
MyClassOrVariableName1_temp[(Count - 1)] = MyClassOrVariableName1[Count];
}
MyClassOrVariableName1 = MyClassOrVariableName1_temp;
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.