c# checking all values in a list code example Example: c# list contains null if (myList.Any(i => i != null)) { DoSomeThing(); }