Answers for "find object in list by name 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
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 "find object in list by name c#"

C# Answers by Framework

Browse Popular Code Answers by Language