How can I do what's in the title, with the minimum amount of code, using whatever c# 3.5 syntax (I'm guessing lambda expressions would fit, but I still don't understand them fully)?
In short, I want to iterate through all types that implement a particular interface.
Edit: I wasn't clear. Let me re-phrase my question: How can I, using reflection, get all types that implement an interface with C# 3.5 with the least code, and minimizing iterations
This is what I want to re-write:
foreach (Type t in this.GetType().Assembly.GetTypes())
if (t is IMyInterface)
;