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

C#

 
AnswerRe: String Parsing Pin
benjymous6-Jan-09 2:58
benjymous6-Jan-09 2:58 
GeneralThanks Pin
mark_w_6-Jan-09 4:26
mark_w_6-Jan-09 4:26 
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 
Is the error that you are getting a 'Stack Overflow'?

In your code you have created a circular reference. The columnType getter/setters call themselves looping ad infinitum

Your Code:
<br />
 public enum ColumnType<br />
            {<br />
                Image = 0,<br />
                Data = 1,<br />
                Checkbox = 2<br />
            }<br />
<br />
            <br />
            [Category("Parameters")]<br />
            [DisplayName("Column Data Type")]<br />
            public ColumnType columnType<br />
            {<br />
                get { return columnType; }<br />
                set { columnType = value; }<br />
            }<br />


Try:
<br />
 public enum ColumnType<br />
            {<br />
                Image = 0,<br />
                Data = 1,<br />
                Checkbox = 2<br />
            }<br />
<br />
            private ColumnType columnType<br />
<br />
            [Category("Parameters")]<br />
            [DisplayName("Column Data Type")]<br />
            public ColumnType ColumnType<br />
            {<br />
                get { return columnType; }<br />
                set { columnType = value; }<br />
            }<br />


I have bolded the changes.


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: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 
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 

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.