Click here to Skip to main content
16,018,418 members
Home / Discussions / C#
   

C#

 
AnswerRe: Public member vs. public property Pin
BoneSoft23-Feb-07 5:50
BoneSoft23-Feb-07 5:50 
GeneralRe: Public member vs. public property Pin
cueshot23-Feb-07 6:04
cueshot23-Feb-07 6:04 
AnswerRe: Public member vs. public property Pin
Stefan Troschuetz23-Feb-07 5:51
Stefan Troschuetz23-Feb-07 5:51 
AnswerRe: Public member vs. public property Pin
Dave Kreskowiak23-Feb-07 5:56
mveDave Kreskowiak23-Feb-07 5:56 
GeneralRe: Public member vs. public property Pin
Christian Graus23-Feb-07 7:32
protectorChristian Graus23-Feb-07 7:32 
AnswerRe: Public member vs. public property Pin
Christian Graus23-Feb-07 7:31
protectorChristian Graus23-Feb-07 7:31 
GeneralRe: Public member vs. public property Pin
BoneSoft23-Feb-07 8:03
BoneSoft23-Feb-07 8:03 
GeneralRe: Public member vs. public property Pin
mike montagne23-Feb-07 13:22
mike montagne23-Feb-07 13:22 
Can't resist.

As every OOP reference you can digest addresses this issue, we should just point you to the best of them -- Stroustrup, Meyers, Richter. These clearly establish the proper implementation of properties, which is central to OOP. If you are not willing to do your homework, you will be stuck in a rut for just however long you continue to do so.

Still, you don't learn *everything* from books -- and many good books might be a bit timid about venturing concepts which, if excercised carelessly, would lead you to folly.

I might be considered "daring" (not to be confused with unsafe or dangerous), because I'm adamant about the conceptually hidden side of properties -- the fields we use to store their values to. Most programmers routinely make their fields private. But they are hidden from all things outside the class, even if they are protected internal. Furthermore, exercising protected internal will often allow you to do things much faster than you can otherwise, because internal processes acting on the field do not have to pass through an accessor. There are many iterative processes which can be made much faster by taking advantage of this elevated field *exposure*.

So, I do this quite often (whenever appropriate, and always when appropriate), and it has never been a critical issue.

The real point however is that *whatever* you do in the way of exposure of *anything* is *all* a matter of the ramifications of the exposure. To "know" what you are doing with exposure is to cover every ramification.

Always.
GeneralOh... and about Serialization and IDE processes Pin
mike montagne23-Feb-07 13:35
mike montagne23-Feb-07 13:35 
QuestionExcel: Problem with Datagrid-generated XML-file Pin
M.Vo.23-Feb-07 5:42
M.Vo.23-Feb-07 5:42 
QuestionForms Control Z Order Pin
BoneSoft23-Feb-07 5:33
BoneSoft23-Feb-07 5:33 
AnswerRe: Forms Control Z Order Pin
BoneSoft23-Feb-07 5:39
BoneSoft23-Feb-07 5:39 
AnswerRe: Forms Control Z Order Pin
kubben23-Feb-07 5:40
kubben23-Feb-07 5:40 
GeneralRe: Forms Control Z Order Pin
BoneSoft23-Feb-07 5:47
BoneSoft23-Feb-07 5:47 
QuestionCannot get datagridview to show records Pin
brainfuelmedia_23-Feb-07 5:07
brainfuelmedia_23-Feb-07 5:07 
AnswerRe: Cannot get datagridview to show records Pin
kubben23-Feb-07 5:32
kubben23-Feb-07 5:32 
AnswerRe: Cannot get datagridview to show records Pin
Drew McGhie23-Feb-07 5:48
Drew McGhie23-Feb-07 5:48 
GeneralRe: Cannot get datagridview to show records Pin
brainfuelmedia_23-Feb-07 5:56
brainfuelmedia_23-Feb-07 5:56 
GeneralRe: Cannot get datagridview to show records Pin
Drew McGhie23-Feb-07 6:00
Drew McGhie23-Feb-07 6:00 
QuestionRemoting Pin
Saaaaz23-Feb-07 4:48
Saaaaz23-Feb-07 4:48 
AnswerRe: Remoting Pin
Obaid ur Rehman23-Feb-07 6:02
Obaid ur Rehman23-Feb-07 6:02 
GeneralRe: Remoting Pin
Saaaaz25-Feb-07 8:13
Saaaaz25-Feb-07 8:13 
GeneralRe: Remoting Pin
Saaaaz27-Feb-07 3:12
Saaaaz27-Feb-07 3:12 
QuestionInheritance Pin
#realJSOP23-Feb-07 4:25
professional#realJSOP23-Feb-07 4:25 
AnswerRe: Inheritance Pin
led mike23-Feb-07 4:38
led mike23-Feb-07 4:38 

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.