Linked by Eugenia Loli-Queru on Wed 12th Dec 2007 05:47 UTC, submitted by LinucksGirl
Thread beginning with comment 290362
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.




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.