CodeAttributeArgument.cs 911 B

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