Answers for "how to remove null vlues in a list in c#"

C#
1

c# remove all null from list

List<EmailParameterClass> parameterList = new List<EmailParameterClass>{param1, param2, param3...};
parameterList.RemoveAll(item => item == null);
Posted by: Guest on September-01-2021
0

c# remove all items from list where item value is null

parameterList = parameterList.Where(x => x != null).ToList();
Posted by: Guest on June-09-2021

Code answers related to "how to remove null vlues in a list in c#"

C# Answers by Framework

Browse Popular Code Answers by Language