J
Jon Turner
Given an object/class, how do I (using reflection) get a list of properties that have a specific attribute assigned to them ? In this example, I want to obtain a list of all propertiesthat have the attribute 'FooAttribute' assigned to them. Many TIA[AttributeUsage( AttributeTargets.Property)]public class FooAttribute:Attribute{ bool _isFooBarred; FooAttribute() { _isFooBarred = false;}}public class Foo{ [FooAttribute()] public byte Property1 { get{}; set{}; } [FooAttribute()] public int Property2 { get{}; set{}; } public string Property3 { get{}; set{}; }}