I try to define records like delphi as below:
first_array:array[1..800]of record
Y1,Y2:integer;
X1,X2:integer;
harfsayisi:integer;
second_array:array[0..255]of record
Y1,Y2:integer;
X1,X2:integer;
can i define this record with c#?
for example;
public struct MyType
{
public int X;
public int Y;
}
MyType[] first_array= new MyType[80];
public MyType[] GetData
{
get
{
return first_array;
}
}
public void MyMethod()
{
first_array[0].Y = 0;
}
I can do first_array[0].Y but i also want to do first_array[0].second_array[0].Y
is it possible?
First_array[].second_array[].x1 is it possible?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Vimal KandasamyRank #2,151 · 661 reputationPosted Mar 19, 2009, 10:00 PM EDT
for what you need this?
firstArray[0].secArray[0].y=0;