 <p>I don't think you can do this with an attribute. It makes more sense to have the Competition class validate entries.</p> <pre><code>public class Competition { public bool AnswersAreCorrectFor(CompetitionEntry entry) { // check answers } // ... } </code></pre>