In my application, i have a delegate that looks like this:

public delegate void ProcessAutoDelegate(AutoType at)

The parameter is an enumeration of type AutoType, within my application.
This enumeration contains 5 possible values.

What i'm trying to do here is to enable any calling application with the
functionality of applying the delegate's functionality only to Automobiles
(another class, Automobile) of whatever type was passed in as the parameter
to the delegate. The thing is, i can't use the GetParameters() method of the
Method property of the delegate, as no value is accessible for the
parameter.

I guess what i need to know is, how do you look at the value of a parameter
dynamically? I've tried various methods of type conversion, but none work.
It seems i always get back the type "System.Reflection.ParameterInfo."
(which, i guess, is to be expected - now how to get the value..?)

Within the list archives, there was a link to a thread that was supposedly
on this topic, but clicking on the thread led me to an error page
(apparently it was a bad link).


Brady Gaster

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to