473,324 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Reflection possible on the call stack?

Is it possible to use reflection to get the name of methods on the call
stack as well as their supplied parameters and method signatures? Thanks in
advance.

Best wishes,
j^2
Nov 16 '05 #1
2 4209
On 03 Jul 2004 04:45, "J.J. Feminella" wrote:
Is it possible to use reflection to get the name of methods on the call
stack as well as their supplied parameters and method signatures? Thanks in
advance.

Best wishes,
j^2


Yoy can certainly get the call stack and the individual class and method
names. From there, you can use reflection to get MethodInfo (or similar)
information about each one of them. I don't believe that you can get the
values of any parameters, though, except for the current one.

--
Simon Smith
simon dot s at ghytred dot com
www.ghytred.com/NewsLook - NNTP Client for Outlook
Nov 16 '05 #2
On 03 Jul 2004 04:45, "J.J. Feminella" wrote:
Is it possible to use reflection to get the name of methods on the call
stack as well as their supplied parameters and method signatures? Thanks in
advance.

Best wishes,
j^2


Yoy can certainly get the call stack and the individual class and method
names. From there, you can use reflection to get MethodInfo (or similar)
information about each one of them. I don't believe that you can get the
values of any parameters, though, except for the current one.

--
Simon Smith
simon dot s at ghytred dot com
www.ghytred.com/NewsLook - NNTP Client for Outlook
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: djp | last post by:
Hi, I'm trying to access fields that are local to a method using reflection. What BindingFlags value should I use and is this possible at all. So far I was able to retreive class fields only. ...
1
by: Good Enchiladas | last post by:
Is it possible to determine a method's own attributes from within the method without hardcoding the name of the method as a constant within the method? Please tell me if it is possible and how it...
0
by: J.J. Feminella | last post by:
Is it possible to use reflection to get the name of methods on the call stack as well as their supplied parameters and method signatures? Thanks in advance. Best wishes, j^2
2
by: brianlanning | last post by:
I'm trying to write a function that can reliably know the name of the calling method. I've figured out how to do this: string methodname = (new StackTrace()).GetFrame(1).GetMethod().Name; ...
1
by: Marco | last post by:
Hi all I am using .NET reflection to examine a stack trace, using the StackTrace, StackFrame, MethodInfo, ParameterInfo and FieldInfo classes. I can easily discover all methods in the call...
0
by: Berger | last post by:
Hello I have a C# webservice which calls c# class dll´s using reflection. One class should produce pdf reports. All works fine. Now I have read that in the web.config the compilation debug...
10
by: pedrito | last post by:
I have a library I'm using that has a lapsed listener issue. I figured I'd just sneak in and do the unsubscription myself since I don't expect it to be fixed any time soon. So, I have the...
1
by: John | last post by:
I am trying to figure out how to translate the following CIL call into an Emit statement. In CIL it is: IL_004c: callvirt instance class System.Data.DataRow...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.