firstPanel = firstPanel ?? new FirstPanel(); 等效于: if (firstPanel != null) { firstPanel = new FirstPanel(); }