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