CompilationResult.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //
  2. // System.Web.Compilation.CompilationResult
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. using System.Collections;
  11. namespace System.Web.Compilation
  12. {
  13. internal class CompilationResult
  14. {
  15. int exitCode;
  16. string fileName;
  17. string output;
  18. string outputFile;
  19. object data;
  20. Hashtable options;
  21. ArrayList dependencies;
  22. public CompilationResult ()
  23. {
  24. }
  25. public CompilationResult (string fileName)
  26. {
  27. this.fileName = fileName;
  28. }
  29. public void Reset ()
  30. {
  31. exitCode = 0;
  32. output = null;
  33. }
  34. public void CopyFrom (CompilationResult other)
  35. {
  36. exitCode = other.ExitCode;
  37. output = other.output;
  38. outputFile = other.outputFile;
  39. data = other.data;
  40. }
  41. public int ExitCode {
  42. get { return exitCode; }
  43. set { exitCode = value; }
  44. }
  45. public string CompilerOutput {
  46. get { return output; }
  47. set { output = value; }
  48. }
  49. public string FileName {
  50. get { return fileName; }
  51. }
  52. public string OutputFile {
  53. get { return outputFile; }
  54. set { outputFile = value; }
  55. }
  56. public object Data {
  57. get { return data; }
  58. set { data = value; }
  59. }
  60. public Hashtable Options {
  61. get { return options; }
  62. set { options = value; }
  63. }
  64. public ArrayList Dependencies {
  65. get { return dependencies; }
  66. set { dependencies = value; }
  67. }
  68. public override string ToString ()
  69. {
  70. return String.Format ("CompilationResult: {0} {1} {2} {3}", exitCode, output, outputFile, data);
  71. }
  72. }
  73. }