Poll: Attribute Design
I would like to run a quick poll. Which design do you prefer for a set of related attributes and why?
Option #1: Several Attribute Types:
public class AaaaFooAttribute: Attribute { }
public class BbbbFooAttribute: Attribute { }
public class CcccFooAttribute: Attribute { }
public class DdddFooAttribute: Attribute { }
Option #2: One Attribute Type and One Enum
public class FooAttribute: Attribute {
public FooAttribute(FooType type) {}
}
public enum FooType { Aaaa, Bbbb, Cccc, Dddd }