But that is not fact in all cases.
We should be careful while choosing between struct or reference type.
It could more better to pass few bytes of data as reference rather than copying all the data, example passing Hashtable instance. Just imagine if Hashtable is values type, passing whole hashtable instead of the reference.
No comments:
Post a Comment