Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
GeneralRe: Events should not return values?! Pin
lmoelleb10-Oct-07 20:53
lmoelleb10-Oct-07 20:53 
AnswerRe: Events should not return values?! Pin
Skippums10-Oct-07 11:39
Skippums10-Oct-07 11:39 
GeneralRe: Events should not return values?! Pin
Domenic Denicola10-Oct-07 11:42
Domenic Denicola10-Oct-07 11:42 
GeneralRe: Events should not return values?! Pin
Skippums11-Oct-07 4:57
Skippums11-Oct-07 4:57 
QuestionPublic and protected property Pin
Fernando A. Gomez F.10-Oct-07 11:07
Fernando A. Gomez F.10-Oct-07 11:07 
AnswerRe: Public and protected property Pin
Patrick Etc.10-Oct-07 11:08
Patrick Etc.10-Oct-07 11:08 
GeneralRe: Public and protected property Pin
Fernando A. Gomez F.10-Oct-07 11:13
Fernando A. Gomez F.10-Oct-07 11:13 
GeneralRe: Public and protected property Pin
Patrick Etc.10-Oct-07 11:44
Patrick Etc.10-Oct-07 11:44 
No problem Smile | :)

The one thing to remember is that the accessibility of the property must be greater than or equal to the accessibility of the most accessible getter or setter - that's probably the compile error you were getting.

Without an access modifier, properties by default are protected, but you were trying to make the getter public. Since the property itself was protected, a public getter isn't allowed.



The early bird who catches the worm works for someone who comes in late and owns the worm farm. -- Travis McGee

GeneralRe: Public and protected property Pin
Skippums10-Oct-07 11:23
Skippums10-Oct-07 11:23 
GeneralRe: Public and protected property Pin
Patrick Etc.10-Oct-07 11:44
Patrick Etc.10-Oct-07 11:44 
GeneralRe: Public and protected property Pin
Robert Rohde10-Oct-07 11:45
Robert Rohde10-Oct-07 11:45 
QuestionToolStripManager.LoadSettings exception Pin
Skippums10-Oct-07 10:42
Skippums10-Oct-07 10:42 
AnswerRe: ToolStripManager.LoadSettings exception Pin
Pete O'Hanlon10-Oct-07 10:50
mvePete O'Hanlon10-Oct-07 10:50 
GeneralRe: ToolStripManager.LoadSettings exception Pin
Skippums10-Oct-07 10:57
Skippums10-Oct-07 10:57 
QuestionChecking for database concurrency violations Pin
msx2310-Oct-07 10:14
msx2310-Oct-07 10:14 
AnswerRe: Checking for database concurrency violations Pin
Robert Rohde10-Oct-07 11:50
Robert Rohde10-Oct-07 11:50 
GeneralRe: Checking for database concurrency violations Pin
msx2311-Oct-07 12:30
msx2311-Oct-07 12:30 
QuestionHow to convert a char from IO stream into an int please Pin
humblepgmr10-Oct-07 9:46
humblepgmr10-Oct-07 9:46 
AnswerRe: How to convert a char from IO stream into an int please Pin
Pete O'Hanlon10-Oct-07 9:49
mvePete O'Hanlon10-Oct-07 9:49 
GeneralRe: How to convert a char from IO stream into an int please Pin
humblepgmr10-Oct-07 10:05
humblepgmr10-Oct-07 10:05 
GeneralRe: How to convert a char from IO stream into an int please Pin
Matthew Cuba10-Oct-07 10:18
Matthew Cuba10-Oct-07 10:18 
QuestionSet a psw to a directory Pin
mcaos10-Oct-07 9:30
professionalmcaos10-Oct-07 9:30 
QuestionRe: Set a psw to a directory Pin
TJoe10-Oct-07 9:33
TJoe10-Oct-07 9:33 
AnswerRe: Set a psw to a directory Pin
Giorgi Dalakishvili10-Oct-07 9:42
mentorGiorgi Dalakishvili10-Oct-07 9:42 
AnswerRe: Set a psw to a directory Pin
mcaos10-Oct-07 10:43
professionalmcaos10-Oct-07 10:43 

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.