Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq find object from id

MyObject myObject = collectionMyObject.FirstOrDefault(o => o.Items != null && o.Items.Any(io => io.Id == 2));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #find #object #id
ADD COMMENT
Topic
Name
1+3 =