Mattias,

I could, but the FrameworkClass.MethodThatDoesStuff() Method is located in a
base class, that is compiled in an assembly.  Along comes an application
developer and wants to define an assembly that derives from FrameworkClass
and passes in to the base.MethodThatDoesStuff() an enumeration defined
outside of the FrameworkClass's assembly.  

If I pass the type, I'm essentially passing in a type that the
FrameworkClass does not understand.

Am I making any sense?

John

-----Original Message-----
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Mattias Sjögren
Sent: Wednesday, August 04, 2004 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Enum as a Parameter

John,

Can you pass Type of the enum to the method?

internal void MethodThatDoesStuff(Type AnEnumeration)
...
base.MethodThatDoesStuff(typeof(Stage));


Mattias

-- 
Mattias Sjögren [MVP]
[EMAIL PROTECTED]
http://www.msjogren.net
  

===================================
This list is hosted by DevelopMentor®  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to