DataAnnotations dynamically attaching attributes

Viewed 23142

Apparently it is possible to dynamically attach DataAnnotation attributes to object properties at runtime and as such achieve dynamic validation.

Can someone provide code sample on this?

4 Answers
Related