Get all parameters from within a function?

  • Thread starter Thread starter Cuperman
  • Start date Start date
C

Cuperman

Hi All,

Is it possible to retrieve parameters from a function automatically,
to send to a log writing assembly? Something like:

Public Function myFunc(Param1 as String, Param2 as integer) as Boolean

WriteLogEntry(myFunc.Name & " " & myFunc.Parameters.Tostring)

'myFunc logic
Dim areWeStuck as Boolean = True
Return areWeStuck


End Function

I don't want to hard code the details as i want to get more
reusability
Thanks,
Mark
 
Cuperman said:
Is it possible to retrieve parameters from a function automatically,
to send to a log writing assembly?

Take a look at the 'MethodBase' class and its properties.
 
Back
Top