The solution seems to be good, but I can't use it.
I have ~120 functions with different numbers of parameters in one class.
I would like to debug these functions. So, when a function is invoked I want
to write all parameter names and values in a log file.
I don't want to make different delegates or anything like this to each
functions.
The typeof(Service).GetMethod("DEL_Assignments").GetParameters(); shows me
all parameter names and types, but obviously not the values.
So, what is the next step?
[quoted text, click to view] "Jon Shemitz" wrote:
> mcskf wrote:
>
> > Hi! I have hundreds of functions. I would like to make a debug possibility.
> > The first task is to list the parameter collection with a cycle. Where is the
> > function parameter argument collection?
>
> I suspect that MethodInfo.GetParameters is what you're looking for. If
> not, perhaps you could rephrase your question to make it a bit
> clearer.
>
> --
>
> ..NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net > Delphi skills make .NET easy to learn In print, in stores.