Link to home
Start Free TrialLog in
Avatar of LanceWLarsen
LanceWLarsen

asked on

.NET Compact Framework -- how to get method name?

Situation: When catching errors in a C# .NET Compact Framework, I log the name of the method and what error occured into a SQLCE table for review.  As of now I have to manually enter the name of the method into a string to be saved into the table for later analysis.

So the question is: Using C# and the .NET Compact Framework -- how does one programatically retrieve the current method name?  I know this is possible in regular windows form development within .NET -- but is it even possible in the Compact Framework?
ASKER CERTIFIED SOLUTION
Avatar of s_sansanwal
s_sansanwal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
One of the best resources for .Net compact framework is at www.opennetcf.org

I just searched their website and found nothing for StackTrace

http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=2648&SearchTerms=StackTrace
Avatar of LanceWLarsen
LanceWLarsen

ASKER

Well -- was hoping the someone from MS or elsewhere would intercede and let us know a back way into the StackTrace -- but alas it is not to be.  Thanks tons for the knowledge that it isn't possible in the current framework -- keeps me from searching endlessly...

Regards...

...Lance W. Larsen
www.lancelarsen.com