Solved

create enum class for the following:

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

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:…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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