public Screenshot getScreenshot(int index) { foreach (Screenshot screenshot in screenshots) { if (screenshot != null && screenshot.index == index) return screenshot; } return null; }