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