TemplateParser.cs 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // System.Web.UI.TemplateParser
  3. //
  4. // Authors:
  5. // Duncan Mak ([email protected])
  6. // Gonzalo Paniagua Javier ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc. (http://www.ximian.com)
  9. //
  10. using System;
  11. using System.Collections;
  12. using System.Web;
  13. namespace System.Web.UI
  14. {
  15. public abstract class TemplateParser : BaseParser
  16. {
  17. string inputFile;
  18. string text;
  19. Hashtable options;
  20. protected abstract Type CompileIntoType ();
  21. protected virtual void HandleOptions (object obj)
  22. {
  23. }
  24. protected abstract Type DefaultBaseType { get; }
  25. protected abstract string DefaultDirectiveName { get; }
  26. internal string InputFile
  27. {
  28. get { return inputFile; }
  29. set { inputFile = value; }
  30. }
  31. internal string Text
  32. {
  33. get { return text; }
  34. set { text = value; }
  35. }
  36. internal Type BaseType
  37. {
  38. get { return DefaultBaseType; }
  39. }
  40. internal Hashtable Options {
  41. get { return options; }
  42. set { options = value; }
  43. }
  44. }
  45. }