CodeBuilder.cs 737 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // System.Web.UI.CodeBuilder
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2003 Ximian, Inc. (http://www.ximian.com)
  8. //
  9. using System.Web.Compilation;
  10. namespace System.Web.UI
  11. {
  12. abstract class CodeBuilder : ControlBuilder
  13. {
  14. string code;
  15. bool isAssign;
  16. public CodeBuilder (string code, bool isAssign, ILocation location)
  17. {
  18. this.code = code;
  19. this.isAssign = isAssign;
  20. this.line = location.BeginLine;
  21. this.fileName = location.Filename;
  22. this.location = location;
  23. }
  24. internal override object CreateInstance ()
  25. {
  26. return null;
  27. }
  28. internal string Code {
  29. get { return code; }
  30. set { code = value; }
  31. }
  32. internal bool IsAssign {
  33. get { return isAssign; }
  34. }
  35. }
  36. }