Finding the size of .net hashtable when deserialzing
If I read from a stream and get a hashtable out. Is their a good way to know how large the hashtable would be. Ie, if I look the file in a binary editor how many of the bytes represent this hashtable? How does the Deserialize mehthod know what goes into the hash?
IFormatter formatter = new BinaryFormatter();
table = (Hashtable)formatter.Deserialize(FileStream);
Edit: What I am trying to figure out is if I were to look at the file in a binary editor how much of that data in the filestream is my hashtable. Or can I do something like a sizeof() to find out the size (I suspect I can't).