csharp list contains null
Code Example - csharp list contains null
if (myList.Any(i => i != null))
{
DoSomeThing();
}
if (myList.Any(i => i != null))
{
DoSomeThing();
}