CompilerResults.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //
  2. // System.CodeDom.Compiler CompilerResults Class implementation
  3. //
  4. // Author:
  5. // Daniel Stodden ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc.
  8. //
  9. namespace System.CodeDom.Compiler
  10. {
  11. using System.Reflection;
  12. using System.Collections.Specialized;
  13. public class CompilerResults
  14. {
  15. private Assembly compiledAssembly;
  16. private CompilerErrorCollection errors;
  17. private int nativeCompilerReturnValue;
  18. private StringCollection output;
  19. private string pathToAssembly;
  20. private TempFileCollection tempFiles;
  21. //
  22. // Constructors
  23. //
  24. public CompilerResults( TempFileCollection tempFiles )
  25. {
  26. this.tempFiles = tempFiles;
  27. }
  28. //
  29. // Properties
  30. //
  31. public Assembly CompiledAssembly {
  32. get {
  33. return compiledAssembly;
  34. }
  35. set {
  36. compiledAssembly = value;
  37. }
  38. }
  39. public CompilerErrorCollection Errors {
  40. get {
  41. if ( errors == null )
  42. errors = new CompilerErrorCollection();
  43. return errors;
  44. }
  45. }
  46. public int NativeCompilerReturnValue {
  47. get {
  48. return nativeCompilerReturnValue;
  49. }
  50. set {
  51. nativeCompilerReturnValue = value;
  52. }
  53. }
  54. public StringCollection Output {
  55. get {
  56. if ( output == null )
  57. output = new StringCollection();
  58. return output;
  59. }
  60. }
  61. public string PathToAssembly {
  62. get {
  63. return pathToAssembly;
  64. }
  65. set {
  66. pathToAssembly = value;
  67. }
  68. }
  69. public TempFileCollection TempFiles {
  70. get {
  71. return tempFiles;
  72. }
  73. set {
  74. tempFiles = value;
  75. }
  76. }
  77. }
  78. }