S
Sunil Menon
Dear All,
Given a Hash Table containing "n" objects (each having many
properties) - is it possible to know how much memory that hash table
has taken - in a simple console application?
Please help.
The following is the solution I have at present:
To serialize the hashtable in to memorystream.
Dim m As New MemoryStream()
Dim b As New BinaryFormatter()
b.Serialize(m, Me)
m.Length // will give the length in bytes
This can be implemented in a console application.
Is this the right method? Is there some other simple method?
TALIA
Many Regards
Sunil
Given a Hash Table containing "n" objects (each having many
properties) - is it possible to know how much memory that hash table
has taken - in a simple console application?
Please help.
The following is the solution I have at present:
To serialize the hashtable in to memorystream.
Dim m As New MemoryStream()
Dim b As New BinaryFormatter()
b.Serialize(m, Me)
m.Length // will give the length in bytes
This can be implemented in a console application.
Is this the right method? Is there some other simple method?
TALIA
Many Regards
Sunil