I realize that there's never a good reason for doing this, but I'm curious for the purposes of security. Is it possible to crawl the stack and capture variables from different frames?
void Func1(string parameter)
{
Func2(MakeSafeParameter(parameter));
}
// external user code
void Func2(string safeParameter)
{
// from here could I craw the stack to get Func1's parameter?
}
EDIT: From the linked question it appears this isn't directly possible within C# without special references. Thanks for the answers/comments!