public static int GetGazeList(out List <GazeData> gazeData) { int gazeDataCount = FetchGazeData(); GazeData[] gazeDataArray = new GazeData[gazeDataCount]; if (gazeDataCount > 0) { GetGazeArray(gazeDataArray, gazeDataCount); } gazeData = gazeDataArray.ToList(); return(gazeDataCount); }