London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

How to limit number of elements in ILIST with only minimum elements value?

Vote:
0

Want limit number of elements in ILIST with only minimum elements value?

[ListItems(2,1000)]
[PropertyListCheckbox]
public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }

ListItems Attribute can take minimum and maximum values both.

I only want to give minimum value?

Please help

#224800
Jun 26, 2020 8:05
Vote:
0

Hackish?

[ListItems(2, int.MaxValue)]
#224813
Jun 26, 2020 12:09
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.