[System.Web] Public event handlers from reference source
[mono.git] / mcs / class / System.Web / System.Web.UI / CompiledTemplateBuilder.cs
index f2ece3d81dd9e29a388a7037d78a751f26b188d4..0d4acd2943ef20bbfe3009573c34e5f952883da2 100644 (file)
@@ -5,6 +5,7 @@
 //     Gonzalo Paniagua Javier (gonzalo@ximian.com)
 //
 // (C) 2002 Ximian, Inc (http://www.ximian.com)
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
 //
 // This is used in the generated C# code from MS and xsp does the same.
 // It just seems to be a container implementing an ITemplate interface.
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Security.Permissions;
+
 namespace System.Web.UI {
 
+// CAS - no InheritanceDemand here as the class is sealed
+[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
 public sealed class CompiledTemplateBuilder : ITemplate
 {
-       private BuildTemplateMethod templateMethod;
+       BuildTemplateMethod templateMethod;
 
        public CompiledTemplateBuilder (BuildTemplateMethod templateMethod)
        {