c# check if list value is empty or null code example Example: check if list contains any empty element in c# if (myList.Any(i => i != null)) { DoSomeThing(); }