CodeAttributeDeclaration.cs 924 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. [Serializable]
  11. public class CodeAttributeDeclaration {
  12. string name;
  13. CodeAttributeArgumentCollection arguments;
  14. //
  15. // Constructors
  16. //
  17. public CodeAttributeDeclaration ()
  18. {
  19. }
  20. public CodeAttributeDeclaration (string name)
  21. {
  22. this.name = name;
  23. }
  24. public CodeAttributeDeclaration (string name, CodeAttributeArgument [] arguments)
  25. {
  26. this.name = name;
  27. this.arguments = new CodeAttributeArgumentCollection ();
  28. this.arguments.AddRange (arguments);
  29. }
  30. //
  31. // Properties
  32. //
  33. public CodeAttributeArgumentCollection Arguments {
  34. get {
  35. return arguments;
  36. }
  37. set {
  38. arguments = value;
  39. }
  40. }
  41. public string Name {
  42. get {
  43. return name;
  44. }
  45. set {
  46. name = value;
  47. }
  48. }
  49. }
  50. }