I don't like to using Struct just for Performance reason. Because it made it easier to has bug in your application.
And it is worse in Team environment.  If an application has a stuct employeeDTO, because this DTO only hold Employee values and qualify to be a value type .
In one place the code got an EmployeeDTO and stored it to a collection(for example, session or ArrayList).

See code like this
ArrayList EmpList=new ArrayList();
EmpList.add(aEmpDto);

....

EmployeeDTO empDto=(EmpleoyeeDTO)EmpList[0];
empDto.email="newemail@test.com"

or
EmployeeDTO empDto=(EmpleoyeeDTO)Session["MyEmpDTO"];
empDto.email="newemail@test.com"

UnBox happen here. Many people will forget that the employeeDTO is value type and treat it as reference type. They change the value and didn't save it back to session.


if in another page, he want to display this updated email address.
Response.write(((EmpleoyeeDTO)session["myEmployeeDto"]).email)
It will still print the old email address.

you may say a good programmer with good programming habit will not cause that bug. But you can't relay on all the members in your team will never make mistake like this.
So I always avoid to create new value type in my code. I may lost some performance, but prevent some potential bugs.


 
Friday, 19 August 2011 04:18:58 (Eastern Daylight Time, UTC-04:00)
replica swiss rolex watches replica tag heuer watches watches tag heuer water carrera watches fake watches colt watches replica breitling watches for sale replica breitling team replica cartier watches watches cartier williamsf team watches replica omega watches for sale omega replica watches rolex Nanjing rolex watches golf watch watches.
Friday, 19 August 2011 04:25:18 (Eastern Daylight Time, UTC-04:00)
iwc watches replica watches cartier tank americaine watches shorts breitling replica breitling replica fake cartier watches cartier replica calatrava watches mason fake omega watches omega replica replica rolex watches for sale replica rolex watches for sale Shortly cheap watch tag heuer watches tag heuer watches.
Wednesday, 28 September 2011 02:36:11 (Eastern Daylight Time, UTC-04:00)
fake audemars piguet adelia replica rolex watches fake rolex complaints replica tag heuer watches for sale replica tag heuer watches for sale fake iwc watches replica watch museum watches hurried fake breitling watches replica breitling fake vacheron constantin replica cartier watches for sale watches cartier fake omega watches replica omega.
Friday, 06 January 2012 01:37:24 (Eastern Standard Time, UTC-05:00)
bulova watch replica watch imitation breitling replica breitling watches swiss army watches.
Comments are closed.