var newListObject = new List(); if(a) { newListObject = new List(); } else { newListObject = new List