G
Guest
I'm new to VS.NET, C#, and the enumerated datatype. I'm told that VS.NET
2005 Intellisense will pop up the members of an enum as a selection list if
you are using the enum as a method parameter. This sounds very handy.
I would really appreciate it if someone could give me a basic C# code sample
showing how this would be set up, both the enum and the method.
So let's say you're building a method, "ReturnPageType(...)", and you want
an enumerated list of possibilities to be displayed in Intellisense: "html"
"pdf" "mht".
What would the skeletal code be? I've tried a bunch of things, but it isn't
working, and for some reason I can't find a sample in literature on- or
offline.
Thank you,
-KF
2005 Intellisense will pop up the members of an enum as a selection list if
you are using the enum as a method parameter. This sounds very handy.
I would really appreciate it if someone could give me a basic C# code sample
showing how this would be set up, both the enum and the method.
So let's say you're building a method, "ReturnPageType(...)", and you want
an enumerated list of possibilities to be displayed in Intellisense: "html"
"pdf" "mht".
What would the skeletal code be? I've tried a bunch of things, but it isn't
working, and for some reason I can't find a sample in literature on- or
offline.
Thank you,
-KF