Linked by Eugenia Loli-Queru on Wed 12th Dec 2007 05:47 UTC, submitted by LinucksGirl
General Development Lazy programming is a general concept of delaying the processing of a function or request until the results are needed. Thinking in terms of lazy programming can help you rid your code of unneeded computation and restructure programs to be more problem-oriented.
Permalink for comment 290362
To read all comments associated with this story, please click here.
jayson.knight
Member since:
2005-07-06

"public byte[] FileBlob
{
get
{
"

You're breaking a cardinal rule of .Net development by returning an array from a property: http://www.gotdotnet.com/Team/FxCop/Docs/Rules/Performance/Properti...

Of course since it's an array of bytes, you'll always get a copy of the array, but even if it were an array of reference types a copy will still be returned. I'm sure you can see the performance ramifications.

Reply Parent Bookmark Score: 2