R
Roger Webb
Hey All,
I cant VERIFY this, but it makes sense so I thought I'd trow up my theory
and see if it made sense to any of you... and then ask how to get around it.
hehe
I've got a Class1[] that I'm wanting to load into a hash table, so, I
basically (at this point) run through a loop and do a
Hashtable.Add(Class1[index].key,Class1[index])
However, later when I try to get out the value out of the HashTable... The
value is null.
I'm thinking this is because the array that initially had the values has
gone out of scope .. and the hashtable only stored a reference to the
object.. so now, the refence is null. If this is true, how do I get
around that? If it is not true, does anyone know why I'm not getting my
values out?
- Roger
I cant VERIFY this, but it makes sense so I thought I'd trow up my theory
and see if it made sense to any of you... and then ask how to get around it.
hehe
I've got a Class1[] that I'm wanting to load into a hash table, so, I
basically (at this point) run through a loop and do a
Hashtable.Add(Class1[index].key,Class1[index])
However, later when I try to get out the value out of the HashTable... The
value is null.
I'm thinking this is because the array that initially had the values has
gone out of scope .. and the hashtable only stored a reference to the
object.. so now, the refence is null. If this is true, how do I get
around that? If it is not true, does anyone know why I'm not getting my
values out?
- Roger