Answers for "find an element from list c#"

C#
4

find a value in list of objects in c#

var item = TextPool.FirstOrDefault(o => o.Name == "test");
if (item != null)
       item.value = "Value";
Posted by: Guest on April-03-2020
2

c# find item in list

MyClass result = list.Find(x => x.GetId() == "xy");
Posted by: Guest on September-28-2021

Code answers related to "find an element from list c#"

C# Answers by Framework

Browse Popular Code Answers by Language