CompilerResults.cs 1.7 KB

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