Maya,
That's by design. The value specified in the constructor is actually
reduced by 72 percent. Microsoft felt that a load factor of 0.72 was
optimal and anything higher would degrade performance so they
automatically scale the value you provide. See the following article
for more information.
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/datastructures_guide2.asp>
Brian
Maya wrote:
Is there any reason why my hashtable load factor doesn't accept the
value i assign to? it always resets it self to the default which is
0.72f although i initialized the table using:
HashTable HT = new HasTable(100,1.0f)
Thank you,
Maya.