Какой, черт возьми, синтаксис для доступа к двумерному массиву в C#?
Вот пример:
Код: Выделить всё
const
MAX_BOWLERS = 8;
gMAX_FRAMES = 40;
...
type
TFrame = Record
Balls : array[1..3] of ShortInt; // Pins standing: balls 1, 2 and 3
Pins : array[1..3] of ShortInt;
CurrentBall : Byte;
Score : Integer; // Current score (-1= undefined)
Attributes : TFrameAttributes;
...
TFrames = Array[1..Max_Bowlers, 0..gMax_Frames] of TFrame;
TgameRec = Record
Side : Byte;
Bowlers : tBowlers;
Frames : TFrames;
...
Я хочу получить доступ к GameRec.Frames[iBowler, iFrame].
Как определить тип C# «TFrames = Array[1..Max_Bowlers, 0..gMax_Frames] из TFrame;» чтобы я мог это сделать?
Подробнее здесь: https://stackoverflow.com/questions/654 ... n-a-struct
Мобильная версия