The following code snippet returns an array of PropertyInfo objects that have a defined attribute:
var props = t.GetProperties().Where(
prop => Attribute.IsDefined(prop, typeof(MyAttribute)));
.
.
How can I do the same thing in .NET2.0, and therefore without using Linq?
try