Asp.net MVC 開発者が次のように名前空間using
内にディレクティブを配置する理由はわかりません。System.Web.Mvc
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));
}
}
}
スコープusing
内にディレクティブを配置する必要がある のはいつですか?namespace