CodeAttributeDeclaration.cs 908 B

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