Solved

create enum class for the following:

Posted on 2008-06-24
3
372 Views
Last Modified: 2013-12-16
How would I create an enum class for the following:
public enum modeEnum
      {
            mode0 = 0,
            mode1 = 1,
            mode2 = 2,
            mode3 = 3
      }

      public enum modeProcessSpreadSheet
      {
            Valid    = 0, // Valid then insert into PriceListDetail
            Warnings = 1, // Warning insert Price List Load Error
            Errors   = 2, // Errors insert into Price List Load and PriceListDetail.
            
      }
0
Comment
Question by:mathieu_cupryk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:jandromeda
ID: 21856603
You already have enums. What more do you want to do?
0
 

Author Comment

by:mathieu_cupryk
ID: 21856668
Just create a class called enum?
0
 
LVL 12

Accepted Solution

by:
jandromeda earned 500 total points
ID: 21856885
enum is a keyword in C#. So you cannot use that as an identifier. So you cannot create a class called enum. But if you want to create a class which processes enum you can call it EnumEngine or some thing like that. Got it?
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question