You've already forked linux-packaging-mono
21 lines
510 B
C#
21 lines
510 B
C#
![]() |
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
|
|||
|
|
|||
|
using System.Collections.ObjectModel;
|
|||
|
|
|||
|
namespace System.Web.Mvc
|
|||
|
{
|
|||
|
[Serializable]
|
|||
|
public class ModelErrorCollection : Collection<ModelError>
|
|||
|
{
|
|||
|
public void Add(Exception exception)
|
|||
|
{
|
|||
|
Add(new ModelError(exception));
|
|||
|
}
|
|||
|
|
|||
|
public void Add(string errorMessage)
|
|||
|
{
|
|||
|
Add(new ModelError(errorMessage));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|