Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: private/public get/set Pin
George_George6-May-08 4:04
George_George6-May-08 4:04 
GeneralRe: private/public get/set Pin
PIEBALDconsult6-May-08 13:17
mvePIEBALDconsult6-May-08 13:17 
GeneralRe: private/public get/set Pin
George_George7-May-08 2:40
George_George7-May-08 2:40 
GeneralRe: private/public get/set Pin
PIEBALDconsult7-May-08 13:04
mvePIEBALDconsult7-May-08 13:04 
GeneralRe: private/public get/set Pin
George_George7-May-08 22:34
George_George7-May-08 22:34 
AnswerRe: private/public get/set Pin
PIEBALDconsult3-May-08 4:35
mvePIEBALDconsult3-May-08 4:35 
GeneralRe: private/public get/set Pin
George_George3-May-08 4:40
George_George3-May-08 4:40 
AnswerRe: private/public get/set Pin
Luc Pattyn3-May-08 5:40
sitebuilderLuc Pattyn3-May-08 5:40 
Hi George,

I seldom dislike a question, but I dislike this one.

If you are not sure whether a method/property will be public/private when not specifying
it explicitly, then the next person looking at your code could well have the same doubts.

The only good remedy then is to make it explicit all the time.
That's what I do, I add private/protected/public or whatever is appropriate to every
single member in every single class.

If you ask me, having a default was a mistake by the C# language designers.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I dislike the black-and-white voting system on questions/answers. Dead | X|


GeneralRe: private/public get/set Pin
PIEBALDconsult3-May-08 5:46
mvePIEBALDconsult3-May-08 5:46 
GeneralRe: private/public get/set Pin
George_George3-May-08 19:38
George_George3-May-08 19:38 
GeneralRe: private/public get/set Pin
George_George3-May-08 19:37
George_George3-May-08 19:37 
GeneralRe: private/public get/set Pin
Luc Pattyn3-May-08 22:49
sitebuilderLuc Pattyn3-May-08 22:49 
GeneralRe: private/public get/set Pin
George_George4-May-08 0:00
George_George4-May-08 0:00 
QuestionAutomated Mail Merge: Help! Pin
Member 42630173-May-08 2:44
Member 42630173-May-08 2:44 
Questioninterface implementation Pin
George_George3-May-08 2:19
George_George3-May-08 2:19 
AnswerRe: interface implementation Pin
Roger Alsing3-May-08 2:28
Roger Alsing3-May-08 2:28 
GeneralRe: interface implementation Pin
George_George3-May-08 2:31
George_George3-May-08 2:31 
AnswerRe: interface implementation Pin
snorkie3-May-08 2:30
professionalsnorkie3-May-08 2:30 
GeneralRe: interface implementation Pin
George_George3-May-08 2:33
George_George3-May-08 2:33 
GeneralRe: interface implementation Pin
snorkie3-May-08 2:41
professionalsnorkie3-May-08 2:41 
GeneralRe: interface implementation Pin
George_George3-May-08 2:43
George_George3-May-08 2:43 
AnswerRe: interface implementation Pin
tgrt3-May-08 14:51
tgrt3-May-08 14:51 
GeneralRe: interface implementation Pin
George_George3-May-08 18:15
George_George3-May-08 18:15 
GeneralRe: interface implementation Pin
tgrt4-May-08 4:07
tgrt4-May-08 4:07 
QuestionA static riddle (or: how to avoid lazy instantiation?) Pin
Luca Leonardo Scorcia3-May-08 1:45
professionalLuca Leonardo Scorcia3-May-08 1:45 

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.