How to invoke a method with arguments on a object using reflection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • j4me
    New Member
    • Sep 2007
    • 1

    How to invoke a method with arguments on a object using reflection

    Hi..

    I am able to invoke/call a method on a object using reflection. But not able to invoke a method with arguments.

    Could anyone plz help me on this.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by j4me
    Hi..

    I am able to invoke/call a method on a object using reflection. But not able to invoke a method with arguments.

    Could anyone plz help me on this.
    Did you read the API documentation for the Method object and its invoke
    method?

    Note that an 'args ...' variable argument list is equivalent to an 'args[]' parameter.

    kind regards,

    Jos

    Comment

    Working...