GetErrorMessageListBlock() static private méthode

static private GetErrorMessageListBlock ( IEnumerable additionalClasses, IEnumerable errors ) : Control
additionalClasses IEnumerable
errors IEnumerable
Résultat System.Web.UI.Control
Exemple #1
0
 IEnumerable <Control> ErrorDisplayStyle.GetControls(IEnumerable <string> errors)
 {
     return(errors.Any()
                                ? new Section(heading, ListErrorDisplayStyle.GetErrorMessageListBlock(ImmutableArray <string> .Empty, errors).ToSingleElementArray(), style: style)
            .ToSingleElementArray()
                                : new Control[0]);
 }
Exemple #2
0
 IEnumerable <Control> ErrorDisplayStyle.GetControls(IEnumerable <string> errors)
 {
     return(errors.Any()
                                ? new Section(heading, ListErrorDisplayStyle.GetErrorMessageListBlock(ImmutableArray <string> .Empty, errors).ToCollection(), style: style)
            .ToCollection()
                                : Enumerable.Empty <Control>());
 }