csharp find one object in list where

Code Example - csharp find one object in list where

                
                        var element = myList.Find(e => [some condition on e]);
                    
                
 

find a value in list of objects in csharp

                        
                                var item = TextPool.FirstOrDefault(o => o.Name == "test");
if (item != null)
       item.value = "Value";