c# - Collection <T> class location in the .net framework -


the collection <t> class exists under system.collections.objectmodel namespace. why not exist under system.collections.generic instead?

it's because:

the system.collections.objectmodel namespace contains classes can used collections in object model of reusable library. use these classes when properties or methods return collections.

and collection<t> can used collection in object model of reusable library.

see https://msdn.microsoft.com/en-us/library/system.collections.objectmodel(v=vs.110).aspx

the full explanation here: https://blogs.msdn.microsoft.com/kcwalina/2005/03/15/the-reason-why-collection-readonlycollection-and-keyedcollection-were-moved-to-system-collections-objectmodel-namespace/

(that appears explain real reason, if ask me...)


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -