Click here to Skip to main content
15,913,709 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Property or a method. This seems wrong. Pin
PIEBALDconsult20-May-14 19:01
mvePIEBALDconsult20-May-14 19:01 
GeneralRe: Property or a method. This seems wrong. Pin
Jim Meadors20-May-14 19:20
Jim Meadors20-May-14 19:20 
GeneralRe: Property or a method. This seems wrong. Pin
_Maxxx_20-May-14 19:40
professional_Maxxx_20-May-14 19:40 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:10
cofounderChris Maunder21-May-14 4:10 
GeneralRe: Property or a method. This seems wrong. Pin
Rage21-May-14 5:58
professionalRage21-May-14 5:58 
GeneralRe: Property or a method. This seems wrong. Pin
David O'Neil20-May-14 19:56
professionalDavid O'Neil20-May-14 19:56 
GeneralRe: Property or a method. This seems wrong. Pin
CPallini20-May-14 20:09
mveCPallini20-May-14 20:09 
GeneralRe: Property or a method. This seems wrong. Pin
BillWoodruff20-May-14 20:09
professionalBillWoodruff20-May-14 20:09 
I like Eric's thinking/teaching, and consider him, along with Skeet, Gravell, and others, including certain CP members whose names I won't mention since they can't blush, a guru's guru.

The best statements I've seen about Properties in .NET C# are in the Language Reference Manual (4th. edition with annotations) by Hejlsberg, et. al., page 43 ff., and in the comments by Liberty, Lippert, Sells, and Wagner inserted in-line as call-outs. ISBN 978-0-321-74176-9 ... see: [^].

imho, in theory, Properties are a higher-level abstraction of a Field that encapsulate behavior necessary to get/set their internal virtual backing-field, but, generally, in OOP, model attributes, rather than behavior.

Of course, in real-world practice ... well: : "In theory, theory and practice are the same. In practice, they are not." Albert Einstein Smile | :)

“I speak in a poem of the ancient food of heroes: humiliation, unhappiness, discord. Those things are given to us to transform, so that we may make from the miserable circumstances of our lives things that are eternal, or aspire to be so.” Jorge Luis Borges


modified 21-May-14 3:22am.

GeneralRe: Property or a method. This seems wrong. Pin
Jeremy Falcon21-May-14 4:03
professionalJeremy Falcon21-May-14 4:03 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:11
cofounderChris Maunder21-May-14 4:11 
GeneralRe: Property or a method. This seems wrong. Pin
User 5924120-May-14 20:13
User 5924120-May-14 20:13 
GeneralRe: Property or a method. This seems wrong. Pin
Jörgen Andersson20-May-14 20:22
professionalJörgen Andersson20-May-14 20:22 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:13
cofounderChris Maunder21-May-14 4:13 
GeneralRe: Property or a method. This seems wrong. Pin
Jörgen Andersson21-May-14 4:41
professionalJörgen Andersson21-May-14 4:41 
GeneralRe: Property or a method. This seems wrong. Pin
V.20-May-14 21:11
professionalV.20-May-14 21:11 
GeneralRe: Property or a method. This seems wrong. Pin
Gary Wheeler21-May-14 0:28
Gary Wheeler21-May-14 0:28 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:15
cofounderChris Maunder21-May-14 4:15 
GeneralRe: Property or a method. This seems wrong. Pin
BobJanova21-May-14 1:11
BobJanova21-May-14 1:11 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:17
cofounderChris Maunder21-May-14 4:17 
GeneralRe: Property or a method. This seems wrong. Pin
Jeremy Falcon21-May-14 1:11
professionalJeremy Falcon21-May-14 1:11 
GeneralRe: Property or a method. This seems wrong. Pin
Marc Clifton21-May-14 2:05
mvaMarc Clifton21-May-14 2:05 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:18
cofounderChris Maunder21-May-14 4:18 
GeneralRe: Property or a method. This seems wrong. Pin
#realJSOP21-May-14 2:22
professional#realJSOP21-May-14 2:22 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:20
cofounderChris Maunder21-May-14 4:20 
GeneralRe: Property or a method. This seems wrong. Pin
Gary Wheeler21-May-14 4:21
Gary Wheeler21-May-14 4:21 

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.