c# - Limit collection by enum using lambda -


I have a collection of objects, one of the properties is "type" which is an enum. I want to limit the collection by using "lambda" and type I do not know how to do it.

Thoughts?

  myname = myEnum.ValueIWant; Var filtered = item Where (P => P. type == type);  

Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -