CodeAttributeDeclaration.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // System.CodeDom CodeAttributeDeclaration Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. // Daniel Stodden ([email protected])
  7. //
  8. // (C) 2001 Ximian, Inc.
  9. //
  10. using System.Runtime.InteropServices;
  11. namespace System.CodeDom
  12. {
  13. [Serializable]
  14. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  15. [ComVisible(true)]
  16. public class CodeAttributeDeclaration
  17. {
  18. private string name;
  19. private CodeAttributeArgumentCollection arguments;
  20. //
  21. // Constructors
  22. //
  23. public CodeAttributeDeclaration ()
  24. {
  25. }
  26. public CodeAttributeDeclaration (string name)
  27. {
  28. this.name = name;
  29. }
  30. public CodeAttributeDeclaration (string name, CodeAttributeArgument [] arguments)
  31. {
  32. this.name = name;
  33. Arguments.AddRange (arguments);
  34. }
  35. //
  36. // Properties
  37. //
  38. public CodeAttributeArgumentCollection Arguments {
  39. get {
  40. if ( arguments == null )
  41. arguments = new CodeAttributeArgumentCollection();
  42. return arguments;
  43. }
  44. }
  45. public string Name {
  46. get {
  47. return name;
  48. }
  49. set {
  50. name = value;
  51. }
  52. }
  53. }
  54. }