CodeMethodReferenceExpression.cs 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // System.CodeDom CodeMethodInvokeExpression 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 CodeMethodReferenceExpression
  17. : CodeExpression
  18. {
  19. private string methodName;
  20. private CodeExpression targetObject;
  21. //
  22. // Constructors
  23. //
  24. public CodeMethodReferenceExpression ()
  25. {
  26. }
  27. public CodeMethodReferenceExpression (CodeExpression targetObject,
  28. string methodName)
  29. {
  30. this.targetObject = targetObject;
  31. this.methodName = methodName;
  32. }
  33. //
  34. // Properties
  35. //
  36. public string MethodName {
  37. get {
  38. return methodName;
  39. }
  40. set {
  41. methodName = value;
  42. }
  43. }
  44. public CodeExpression TargetObject {
  45. get {
  46. return targetObject;
  47. }
  48. set {
  49. targetObject = value;
  50. }
  51. }
  52. }
  53. }