Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
QuestionHDD rotations per minute Pin
adi.rusu6-Jan-09 0:42
adi.rusu6-Jan-09 0:42 
QuestionPOPUP WINDOW Pin
khosnur6-Jan-09 0:41
khosnur6-Jan-09 0:41 
AnswerRe: POPUP WINDOW Pin
rah_sin6-Jan-09 1:03
professionalrah_sin6-Jan-09 1:03 
QuestionGet Available Bandwidth TCP/IP Pin
satsumatable6-Jan-09 0:38
satsumatable6-Jan-09 0:38 
QuestionUsing enumeration with a public variable [modified] Pin
kanchoette6-Jan-09 0:33
kanchoette6-Jan-09 0:33 
AnswerRe: Using enumeration with a public variable Pin
Henry Minute6-Jan-09 0:49
Henry Minute6-Jan-09 0:49 
GeneralRe: Using enumeration with a public variable Pin
kanchoette6-Jan-09 1:05
kanchoette6-Jan-09 1:05 
GeneralRe: Using enumeration with a public variable Pin
Henry Minute6-Jan-09 1:21
Henry Minute6-Jan-09 1:21 
Yes. Silly of me.
This is because you are declaring the enum inside your class.

Try changing public enum ColumnType to public enum ColumnTypes (all I've done is add an 's') making sure to change all the references to it. I suggest doing this by using the Refactor|Rename context menu option.
If this works, and I think it will, you might consider moving the enum declaration outside the class, unless it will only ever be used within the class.

e.g.
Instead of

<br />
public partial class MyClass<br />
{<br />
   public enum MyEnum<br />
   {<br />
      .....<br />
      .....<br />
   }<br />
         <br />
   .........<br />
   .........<br />
   .........<br />
}<br />



to:

<br />
public enum MyEnum<br />
{<br />
   .....<br />
   .....<br />
}<br />
<br />
public partial class MyClass<br />
{<br />
         <br />
   .........<br />
   .........<br />
   .........<br />
}<br />



Honi soit qui mal y pongs - Evil to he who thinks it stinks

GeneralRe: Using enumeration with a public variable Pin
kanchoette6-Jan-09 1:31
kanchoette6-Jan-09 1:31 
GeneralRe: Using enumeration with a public variable Pin
Henry Minute6-Jan-09 1:36
Henry Minute6-Jan-09 1:36 
QuestionRetrieving Image from database... Pin
sandhya146-Jan-09 0:24
sandhya146-Jan-09 0:24 
QuestionHow to convert PPT files to JPEG files. Pin
NarVish6-Jan-09 0:10
NarVish6-Jan-09 0:10 
AnswerRe: How to convert PPT files to JPEG files. Pin
«_Superman_»6-Jan-09 0:21
professional«_Superman_»6-Jan-09 0:21 
QuestionMs access database Pin
raj2313625-Jan-09 23:52
raj2313625-Jan-09 23:52 
QuestionMD5 algorithm issue Pin
George_George5-Jan-09 23:10
George_George5-Jan-09 23:10 
AnswerRe: MD5 algorithm issue Pin
Tom Deketelaere6-Jan-09 0:15
professionalTom Deketelaere6-Jan-09 0:15 
GeneralRe: MD5 algorithm issue Pin
George_George6-Jan-09 0:28
George_George6-Jan-09 0:28 
GeneralRe: MD5 algorithm issue Pin
Tom Deketelaere6-Jan-09 1:36
professionalTom Deketelaere6-Jan-09 1:36 
GeneralRe: MD5 algorithm issue Pin
George_George10-Jan-09 2:29
George_George10-Jan-09 2:29 
GeneralRe: MD5 algorithm issue Pin
Tom Deketelaere11-Jan-09 21:28
professionalTom Deketelaere11-Jan-09 21:28 
AnswerRe: MD5 algorithm issue Pin
Abhijit Jana6-Jan-09 1:28
professionalAbhijit Jana6-Jan-09 1:28 
GeneralRe: MD5 algorithm issue Pin
George_George10-Jan-09 2:23
George_George10-Jan-09 2:23 
AnswerRe: MD5 algorithm issue Pin
DaveyM696-Jan-09 10:55
professionalDaveyM696-Jan-09 10:55 
GeneralRe: MD5 algorithm issue Pin
George_George10-Jan-09 2:21
George_George10-Jan-09 2:21 
GeneralRe: MD5 algorithm issue Pin
DaveyM6910-Jan-09 8:36
professionalDaveyM6910-Jan-09 8:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.