Open cohen990 opened 7 years ago
A [RequiredIf(<condition>)] attribute
[RequiredIf(<condition>)]
Condition could be passed in as a lambda
Idea is that you say
Need to think about order of condition evaluation?
Attribute values have to be primitive values, so I'm guessing the best you could do is a nameof(OtherProperty) operator here that still resolves to a compile-time constant primitive value. This could be useful.
nameof(OtherProperty)
A
[RequiredIf(<condition>)]
attributeCondition could be passed in as a lambda
Idea is that you say
Need to think about order of condition evaluation?