Solved

create enum class for the following:

Posted on 2008-06-24
3
368 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Word Directory is not in the drop down list 4 25
Not showing JavaScript in the list 5 40
Error in script 11 47
ASP.NET MVC 2 0
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now