#include "stdafx.h"
using namespace System;
ref struct MyStruct
{
array^ array1;
MyStruct()
{
array1 = gcnew array(10){ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90 };
}
void f()
{
interior_ptr p = &array1[0];
for (int i = 0; i < 10; i++)
{
Console::WriteLine(*p++);
}
}
};