CompiledTemplateBuilder.cs 632 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // System.Web.UI.CompiledTemplateBuilder
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  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. namespace System.Web.UI {
  12. public class CompiledTemplateBuilder : ITemplate
  13. {
  14. private BuildTemplateMethod templateMethod;
  15. public CompiledTemplateBuilder (BuildTemplateMethod templateMethod)
  16. {
  17. this.templateMethod = templateMethod;
  18. }
  19. public virtual void InstantiateIn (Control ctrl)
  20. {
  21. templateMethod (ctrl);
  22. }
  23. }
  24. }