style and ^Ms in last patch from Alon
[mono.git] / mcs / class / System.Web / System.Web.UI / CompiledTemplateBuilder.cs
1 //
2 // System.Web.UI.CompiledTemplateBuilder
3 //
4 // Authors:
5 //      Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 //
7 // (C) 2002 Ximian, Inc (http://www.ximian.com)
8 //
9 // This is used in the generated C# code from MS and xsp does the same.
10 // It just seems to be a container implementing an ITemplate interface.
11
12 namespace System.Web.UI {
13
14 public sealed class CompiledTemplateBuilder : ITemplate
15 {
16         private BuildTemplateMethod templateMethod;
17
18         public CompiledTemplateBuilder (BuildTemplateMethod templateMethod)
19         {
20                 this.templateMethod = templateMethod;
21         }
22
23         public void InstantiateIn (Control ctrl)
24         {
25                 templateMethod (ctrl);
26         }
27 }
28 }
29