I have a program in c# that has a dictionary, I defined it like this:
Dictionary dict<Int32,Int32> = new Dictionary<Int32,Int32>();
Then I added 100 entry to my dictionary. Now I want to know the exactly memory usage of this dictionary.
please do not talk about sizeof
and some methods like this, I want a mathematical way to compute it, for example if there is any pointer or any hash key that should be saved, please let me know (actually I do not know the exact way that dictionary works).