What is a great resource for learning about the implementation details of .NET generic collections? -


i'm interested in understanding underlying implementation details of generic collections in .net. have in mind details such how collections stored, how each member of collection accessed clr, etc.

for collections analogous traditional data structures, such linkedlist , dictionary, think have understanding of what's going on underneath. however, i'm not collections list (how set such both indexable , expandable?) , sortedlist, leads learn more them appreciated.

a great way start looking @ implementation details opening reflector , decompiling original source code. can decompile source code c# or vb , analyze dependencies in code. downside reflector isn't able produce easy read code optimized code , enumerators (which important part of collections implementation).

microsoft has released original source code, additionally provide original comments , unobscured variable names. see here how enable it. you'll need write small demo program make visual studio download right sources, they'll cached in folder can access them outside debugger. option use tool downloads complete sources. think there msdn download sources too.

another thing might want have @ how generics work. they're basics on collections built. compared java, .net implementation superior because allows collections of value types without taking performance hit. have written blog post on topic, might want check out or read official microsoft paper directly.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -