remove all values from list c#

58

c# remove all null from list -

List<EmailParameterClass> parameterList = new List<EmailParameterClass>{param1, param2, param3...};
parameterList.RemoveAll(item => item == null);

remove all values from list c# -

myList.Clear(); //removes all the values in the list 

Comments

Submit
0 Comments