DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 13 Aug 2007 09:04:04 -0700,    posted on: microsoft.public.dotnet.framework        back       

Thread Index
  1    Random


read parameters through StackFrame   
I'm trying to figure out a way to read parameter values from a prior 
function call in the StackFrame.  I know reflection won't let me do this, it 
wasn't designed to do anything but report on static data, but is there 
another way?

What I'm looking for is to do soemthing similar to the following...

Public Class MyClass
    Inherits MyClassBase

    Function GetFoo(arg1 as string, arg2 as string) as Foo
        Return MyBase.FindFoo()
    End Function
End Class

Public Class MyClassBase
    Function FindFoo() As Foo
        (this function would need to read the calling function parameter 
values to determine what it returns)
        (this function would be called by many functions in the inherited 
class, which is why I'm not passing the parameters directly)
    End Function
End Function

I'm thinking I could pass in a ParamArray, but I'd like to avoid doing that 
if possible.  I'd like to avoid requiring any effort on the part of a 
developer writing new methods in the MyClass class (e.g. "always include 
these lines of code in your function...").
Date:Mon, 13 Aug 2007 09:04:04 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us