Posted on 2005-05-16
Say I have a class that exposes a static hashtable
private hashtable hash;
public static hashtable MyHashtable
In my other class B
I want to access that very same hashtable.
I just call A.MyHashTable
Now my Question is that if I create a Hashtable instance in my Class B such as :
private Hashtable myHash = A.MyHashTable;
Will this actually copy the entire MyHashTable structure to Class B's memory stack, or it will just store a pointer to the actually memory address that contains MyHashTable.
Is doing this and then use
more performant than calling