How to use constraints in foreach declarations?

How would/can I do something like

foreach(Type t in typeList) where t.variable == somevalue 

So I want to do it for each t where the value of the variable is some value. 🙂

by PineappleMechanic via /r/csharp

Leave a Reply