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
* 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.