Re: Business objects with no properties and data binding

Marc Brooks <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
> Getters usually do not change the state of the object.

But they can do some significant (delayed) work to get the correct value.

> Properties are not encapsulation. They are syntactical sugar of a language.

Properties are the public-level abstraction the to the fields of an
object, they are most definately useful to encapsulate some attributes
of the object.  You don't like them, but you are fighting against the
"current" of the CLR databinding merely because you don't need the
sugar.... not for any real danger in using them.

--
"I am Dyslexic of Borg. Resistors are fertile. Prepare to have your
ass laminated." -- Dan Nitschke

Marc C. Brooks
http://musingmarc.blogspot.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.