为什么内部foreach中的变量featureCollection超出范围?这是一个MVC视图。
<%
foreach (var featureCollection in Model.FeatureCollections)
{
Html.Encode(featureCollection.Title);
%>
<br />
<%
foreach (var collection in featureCollection)
{
//Loop through collection and write items out.
}
%>
<%
}
%>