How to add an attribute to a property at runtime
Don’t let someone tell you that you can’t do it. You can run for president if you want 🙂 For your convenience, this is a fully working example public class SomeAttribute : Attribute { public SomeAttribute(string value) { this.Value = value; } public string Value { get; set; } } public class SomeClass { public … Read more