RemcoGerlich
0
Q:

get item from icollection

var foo = myICollection.OfType<YourType>().FirstOrDefault();
// or use a query
var bar = (from x in myICollection.OfType<YourType>() where x.SomeProperty == someValue select x)
	.FirstOrDefault();
1

New to Communities?

Join the community