ok cool, but my real question is when a struct is "value copied", does this
mean that say a struct is passed into N different methods, are there really
N different but equal copies or just 1?
Take the simple PointF structure, with an X and Y... not much cost but say
theres a structure with 20 fields, all value types, and passed by value...
do all the values get copied to another struct instance? and doesnt that
seem horribly inefficient to the N degree? (Saying that because the
runtime has to copy N fields to a new "struct" instance on the local stack)
If that's the case, then wouldn't passing structs around be (in theory)
worse then defining the "colleciton of like-fields" as a class and get a
reference allocated on the heap?
These are some things, that in my mind havent really been addressed by the
runtime gurus... and I'm just curious, efficiency-wise which is better...
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
(e-mail address removed)-software.com [remove the first "CC."]