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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -