Groups | Blog | Home
all groups > dotnet framework > july 2006 >

dotnet framework : Where is the parameter argument collection?


mcskf
7/31/2006 8:01:02 AM
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.
Jon Shemitz
7/31/2006 10:07:46 AM
[quoted text, click to view]

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
mcskf
7/31/2006 3:04:02 PM
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
7/31/2006 6:29:36 PM
[quoted text, click to view]

Read the "Advanced Methods" chapter of Don Box's "Essential .NET".

--

..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
mcskf
8/4/2006 1:01:01 AM
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?


[quoted text, click to view]
mcskf
8/28/2006 12:41:01 PM
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.)

[quoted text, click to view]
AddThis Social Bookmark Button