Merge pull request #1709 from atsushieno/import-codedom-core
[mono.git] / mcs / class / System / System.CodeDom / CodeCompileUnit.cs
index 680ccc0c6d4b16f1ecc80e71e93c9b6f52bd63d3..3ac9cc17c35eb0340fc5319c083fe7dd1e737213 100644 (file)
@@ -40,9 +40,9 @@ namespace System.CodeDom
        public class CodeCompileUnit
                : CodeObject
        {
-               private CodeAttributeDeclarationCollection assemblyCustomAttributes;
+               private CodeAttributeDeclarationCollection attributes;
                private CodeNamespaceCollection namespaces;
-               private StringCollection referencedAssemblies;
+               private StringCollection assemblies;
 
                //
                // Constructors
@@ -56,10 +56,10 @@ namespace System.CodeDom
                //
                public CodeAttributeDeclarationCollection AssemblyCustomAttributes {
                        get {
-                               if ( assemblyCustomAttributes == null )
-                                       assemblyCustomAttributes = 
+                               if ( attributes == null )
+                                       attributes = 
                                                new CodeAttributeDeclarationCollection();
-                               return assemblyCustomAttributes;
+                               return attributes;
                        }
                }
 
@@ -73,14 +73,12 @@ namespace System.CodeDom
 
                public StringCollection ReferencedAssemblies {
                        get {
-                               if ( referencedAssemblies == null )
-                                       referencedAssemblies = new StringCollection();
-                               return referencedAssemblies;
+                               if ( assemblies == null )
+                                       assemblies = new StringCollection();
+                               return assemblies;
                        }
                }
 
-#if NET_2_0
-
                CodeDirectiveCollection startDirectives;
                CodeDirectiveCollection endDirectives;
 
@@ -99,8 +97,5 @@ namespace System.CodeDom
                                return endDirectives;
                        }
                }
-
-#endif
-
        }
 }