Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

How to check if there are elements in IList?

$
0
0

I want to put a validation on IList to check if there are elements added in the ILIst.

If no elements present, I wan to show a validation message saying "Please add values in the list".

public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }

Please help.


Viewing all articles
Browse latest Browse all 6894

Trending Articles