CodeCompileUnit.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // System.CodeDom CodeCompileUnit Class implementation
  3. //
  4. // Author:
  5. // Daniel Stodden ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc.
  8. //
  9. using System.Runtime.InteropServices;
  10. using System.Collections.Specialized;
  11. namespace System.CodeDom
  12. {
  13. [Serializable]
  14. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  15. [ComVisible(true)]
  16. public class CodeCompileUnit
  17. : CodeObject
  18. {
  19. private CodeAttributeDeclarationCollection assemblyCustomAttributes;
  20. private CodeNamespaceCollection namespaces;
  21. private StringCollection referencedAssemblies;
  22. //
  23. // Constructors
  24. //
  25. public CodeCompileUnit()
  26. {
  27. }
  28. //
  29. // Properties
  30. //
  31. public CodeAttributeDeclarationCollection AssemblyCustomAttributes {
  32. get {
  33. if ( assemblyCustomAttributes == null )
  34. assemblyCustomAttributes =
  35. new CodeAttributeDeclarationCollection();
  36. return assemblyCustomAttributes;
  37. }
  38. }
  39. public CodeNamespaceCollection Namespaces {
  40. get {
  41. if ( namespaces == null )
  42. namespaces = new CodeNamespaceCollection();
  43. return namespaces;
  44. }
  45. }
  46. public StringCollection ReferencedAssemblies {
  47. get {
  48. if ( referencedAssemblies == null )
  49. referencedAssemblies = new StringCollection();
  50. return referencedAssemblies;
  51. }
  52. }
  53. }
  54. }