Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# list find null

var listItem = list.FirstOrDefault(x => x.Foo == Foo);
if (listItem != null)
{
    //Do stuff
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #find #null
ADD COMMENT
Topic
Name
7+7 =