list search csharp

Code Example - list search csharp

                
                        list.Where(x => x.Name == "theName");
return list;
                    
                
 

how to locate a specific element in a list csharp

                        
                                //7 will be the spot in the list
List<int> intList = new List<int>();
int x = List[7];
                            
                        
 

find value in object csharp

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