Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

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

Vote:
 

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:
 

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.