c# find one object in list where

40

c# find one object in list where -

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

find a value in list of objects in c# -

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

Comments

Submit
0 Comments