// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Web.WebPages.Scope;
namespace System.Web.Mvc
{
public class ViewContext : ControllerContext
{
private const string ClientValidationScript = @"";
internal static readonly string ClientValidationKeyName = "ClientValidationEnabled";
internal static readonly string UnobtrusiveJavaScriptKeyName = "UnobtrusiveJavaScriptEnabled";
// Some values have to be stored in HttpContext.Items in order to be propagated between calls
// to RenderPartial(), RenderAction(), etc.
private static readonly object _formContextKey = new object();
private static readonly object _lastFormNumKey = new object();
private Func> _scopeThunk;
private IDictionary