Is there a default method defined in .Net for C# to remove all the elements within a list which are null?
null
List parame
List parameterList = new List{param1, param2, param3...}; parameterList = parameterList.Where(param => param != null).ToList();