public DataSerializableType(int runnerCount, int raceCount) { _runnerCount = runnerCount; _raceCount = raceCount; _runnerInfos = new DataSerializableBasicType[runnerCount, raceCount]; for (var i = 0; i < _runnerCount; i++) { for (var j = 0; j < _raceCount; j++) { _runnerInfos[i, j] = new DataSerializableBasicType(); } } }
public void ReadData(IObjectDataInput input) { _runnerCount = input.ReadInt(); _raceCount = input.ReadInt(); _runnerInfos = new DataSerializableBasicType[_runnerCount, _raceCount]; for (var i = 0; i < _runnerCount; i++) { for (var j = 0; j < _raceCount; j++) { _runnerInfos[i, j] = new DataSerializableBasicType(); _runnerInfos[i, j].ReadData(input); } } }