Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

create enum class for the following:

Posted on 2008-06-24
3
Medium Priority
?
373 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 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

704 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