I don’t know why the Asp.net MVC developers put the directives usingin the namespace System.Web.Mvcas follows.
namespace System.Web.Mvc
{
using System;
using System.Collections.ObjectModel;
[Serializable]
public class ModelErrorCollection : Collection<ModelError>
{
public void Add(Exception exception)
{
Add(new ModelError(exception));
}
public void Add(string errorMessage)
{
Add(new ModelError(errorMessage));
}
}
}
When do we need to place directives usinginside an area namespace?
source
share