Jack,
It doesn't really matter which you do. The reason is that if you set
the variable equal to the hashtable, then it is a reference to the instance.
If the instance is passed to other objects, then changes that they make will
be reflected in the hashtable that your business object is holding a
reference to.
You might want to consider cloning the hashtable for passing around.
Also, you might want to consider a data table as well (although you don't
have to), it's just that there is a little more type safety involved
(columns are of a certain type).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Jack" <j@mse.com> wrote in message
news:OY**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have a hashtable that I need to pass around to different Business
Objects. My question is it better to pass it and make a locale hashtable variable
and set it equal to the passed hashtable or should I pass it and not worry
about it?
Thanks