Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6473929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:31:30+00:00 2026-05-25T06:31:30+00:00

My principal problem is how to find out whitch object type called specific method.

  • 0

My principal problem is how to find out whitch object type called specific method.

Is out there any solution that do no use stack trace ?

If not why such information are not avaiable ? it could be very helpfull.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:31:31+00:00Added an answer on May 25, 2026 at 6:31 am

    Is out there any solution that do no use stack trace ?

    Basically, no. Certainly, there is no good solution that doesn’t use exception objects and stack traces under the hood. (However, you don’t need to parse the stack trace text. You can get hold of the array of StackFrame objects that contain the same information.)

    In theory, you could avoid using the stacktrace mechanisms by passing an extra parameter to say who the caller is. However this is complicated and really messes up your code if you do it by hand, and problematic if you try to do it automatically.

    If not why such information are not available ?

    Because:

    • making the information available cheaply is going to cause ordinary method calls to be more expensive due to necessary changes to the method call/return “protocol”,

    • in general, it is a bad idea for the behavior of a method to depend on what method called it, and

    • the stack trace mechanism does the job anyway, especially if you are only capturing the calling method for diagnostic / tracing purposes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody help me to find out solution of following problem. In ASP.NET website:
I created an extension method called HasContentPermission on the System.Security.Principal.IIdentity : namespace System.Security.Principal {
I'm trying to find out current user name for my sharepoint application. There are
I have a class that implements IAuthorizationPolicy. I set up a custom Principal object
I got one problem at my exam for subject Principal of Programming Language. I
I have a custom security principal object which I set in the global.asax for
I query all security groups in a specific domain using PrincipalSearchResult<Principal> results = ps.FindAll();
I have a problem with my facelets: I constricted a nav part that displays
the problem starts with a function call to a mono function that is not
The problem i see with this code, is that it's going to be reused

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.