Answers for "how to find a object inside of a list in c#"

C#
2

c# find one object in list where

var element = myList.Find(e => [some condition on e]);
Posted by: Guest on August-17-2021
1

c# find element in list of list

var element = (from sublist in userList
               from item in sublist
               where item.uniqueidentifier == someid
               select item).FirstOrDefault();
Posted by: Guest on June-24-2020

Code answers related to "how to find a object inside of a list in c#"

C# Answers by Framework

Browse Popular Code Answers by Language