SyntaxFix
Write A Post
Hire A Developer
Questions
You can use Count property of List in c#
please find below code which checks list empty and null both in a single condition
if(myList == null || myList.Count == 0) { //Do Something }