Solved

create enum class for the following:

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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