|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Where is the parameter argument collection?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? thx. mcskf mcskf wrote:
> Hi! I have hundreds of functions. I would like to make a debug possibility. I suspect that MethodInfo.GetParameters is what you're looking for. If> The first task is to list the parameter collection with a cycle. Where is the > function parameter argument collection? 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. 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? Show quote "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. > mcskf wrote:
> So, what is the next step? Read the "Advanced Methods" chapter of Don Box's "Essential .NET".-- ..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net Delphi skills make .NET easy to learn In print, in stores. Thank you for your advice.
Unfortunately I couldn't get that book, although I still to try get it continuously. So would you please give me any detailed information? Show quote "Jon Shemitz" wrote: > mcskf wrote: > > > So, what is the next step? > > Read the "Advanced Methods" chapter of Don Box's "Essential .NET". > > -- > > ..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net > Delphi skills make .NET easy to learn In print, in stores. > Unfortunately we still haven't found the solution.
Our company has more MSDN universal subscriptions. Perhaps it's not the best place for our questions. Which is the MSDN forum where we can get answers for our questions in two days? (Not in the form of a title of a book.) Show quote "Jon Shemitz" wrote: > mcskf wrote: > > > So, what is the next step? > > Read the "Advanced Methods" chapter of Don Box's "Essential .NET". > > -- > > ..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net > Delphi skills make .NET easy to learn In print, in stores. > |
|||||||||||||||||||||||