All due respect, but it would be unwise for any of us to take anything for
granted. The mere fact that you _want_ to do something does not in and of
itself prove that it's of value.
Well, it's proof that I want to do it, but frankly I'm a veteran of multiple
fora, and while I appreciate the volunteer nature of the answers, I do lose
patience with people who want to convince me I don't want to do something or
I shouldn't be asking the question. If they don't want to answer, they
don't have to, but please don't tell me I shouldn't be asking the question.
If someone can't conceive of any reason I might want to do something, then
they can simply consider it a theoretical exercise. If they don't want to
participate in a theoretical exercise, then don't.
Isn't incorrect output at run-time a failure? If someone's looking at the
output and sees the name of a method that doesn't exist, that seems like
that would be an indication that something's wrong.
Even if you don't accept my scenario, I'm sure you could come up with one
where this is valid. A tester is tasked with testing an API, and turns on
an application flag that gives trace output to the user. They click on a
menu option to determine what function is called when that event occurs.
They determine that the wrong function is being called and a bug is opened.
It turns out that the correct function is actually being called, but the
trace output was wrong. The trace output was wrong because the API changed
and the developer changed the function call, but did not change the trace
output. A bug is submitted, requiring a fix and a new build. Or there is
simply some back and forth to determine if there is actually any problem,
wasting time in the process. A compile error would have short circuited
this process from the start.
I'm sure you can think of other scenarios.
The above breaks if someone fails to set the Name property correctly
The name property is set by Windows designer, not the developer. But that
point is moot, because the point is *how* the error is caught, not *if*
something breaks. A compile error is preferrable to manual detection by a
person.
People waste time on things that turn out to be useless, or at the very
least the wrong approach, all the time. I see no reason to believe that
you are somehow magically immune to that particular aspect of the human
condition.
People also waste time on forums telling other people what they should be
spending their time on (I'm not referring to you.)
As I said before, until you can precisely describe what your actual
ultimate goal is, it's impossible to offer any really good advice.
My ultimate goal is to get the name of a function programmatically. You say
it can't be done, so that's that.