Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-10 Thread James Geall
results: b.BarEnum FooBar Foo Bar FooBar -Original Message- From: John Lomnicki [mailto:[EMAIL PROTECTED] Sent: 28 July 2004 04:48 To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Enum as a Parameter How would one pass the enumeration into a method in C#? --- Application Code --- [Flags

Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-10 Thread John Lomnicki
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));

Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-10 Thread John Lomnicki
John - -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Frans Bouma Sent: Wednesday, August 04, 2004 1:34 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Enum as a Parameter Have you checked out the various metho

Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-05 Thread Frans Bouma
Have you checked out the various methods of System.Enum? I think these can help you with what you want to accomplish.. Frans. Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com My .NET Blog

Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-05 Thread Mattias Sjögren
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 DevelopMento

[ADVANCED-DOTNET] Enum as a Parameter

2004-08-04 Thread John Lomnicki
How would one pass the enumeration into a method in C#? --- Application Code --- [Flags()] Public enum Stage{InProcess=1, Waiting=2, Busy=4, Available=8}; [Inside of a function] base.MethodThatDoesStuff(Stage, Stage.InProcess); --- Framework Code --- [Inside the base object] internal void Metho