2
0

CompilationResult.cs 1.2 KB

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