CompilationResult.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. public CompilationResult ()
  22. {
  23. }
  24. public CompilationResult (string fileName)
  25. {
  26. this.fileName = fileName;
  27. }
  28. public void Reset ()
  29. {
  30. exitCode = 0;
  31. output = null;
  32. }
  33. public void CopyFrom (CompilationResult other)
  34. {
  35. exitCode = other.ExitCode;
  36. output = other.output;
  37. outputFile = other.outputFile;
  38. data = other.data;
  39. }
  40. public int ExitCode {
  41. get { return exitCode; }
  42. set { exitCode = value; }
  43. }
  44. public string CompilerOutput {
  45. get { return output; }
  46. set { output = value; }
  47. }
  48. public string FileName {
  49. get { return fileName; }
  50. }
  51. public string OutputFile {
  52. get { return outputFile; }
  53. set { outputFile = value; }
  54. }
  55. public object Data {
  56. get { return data; }
  57. set { data = value; }
  58. }
  59. public Hashtable Options {
  60. get { return options; }
  61. set { options = value; }
  62. }
  63. public override string ToString ()
  64. {
  65. return String.Format ("CompilationResult: {0} {1} {2} {3}", exitCode, output, outputFile, data);
  66. }
  67. }
  68. }