J
jeff
I have a collection of objects, call them MyObject, that I
store in a Hashtable , myHashTable(with dates as keys for
instance). These are VERY large objects and I have
functions that take them as a 'ref' argument. Now I don't
need to change any of the data in them -- I simply pass
them by ref so that I don't have to make a copy. I have
just discovered that you can't pass properties as 'ref'
arguments because they are read only. So I can't pass
((MyObject) myHashTable[myDate]) as a ref argument to the
function.
How can I maintain a collection of parameterized objects
(by a date or string) that can be passed as a ref argument
to a function.
Thanks,
Jeff.
store in a Hashtable , myHashTable(with dates as keys for
instance). These are VERY large objects and I have
functions that take them as a 'ref' argument. Now I don't
need to change any of the data in them -- I simply pass
them by ref so that I don't have to make a copy. I have
just discovered that you can't pass properties as 'ref'
arguments because they are read only. So I can't pass
((MyObject) myHashTable[myDate]) as a ref argument to the
function.
How can I maintain a collection of parameterized objects
(by a date or string) that can be passed as a ref argument
to a function.
Thanks,
Jeff.