Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4237472
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:46:40+00:00 2026-05-21T02:46:40+00:00

Besides the obvious reason of storing any type as an object and storing it

  • 0

Besides the obvious reason of storing any type as an object and storing it in a non-generic collection, what other reasons are there for still using non-generic collections.

As of yet I have found no other purpose, other than backward compatibility with older software, for even keeping these types of collections in the .NET framework.

It seems like it would just create more work, because you’re constantly boxing and un-boxing from type object to it’s original type and vice-versa.

Also you run into the issue of sometimes not remembering what the original datatype of the object was to begin with (eg Double, Float, Decimal). This in fact has to be one of the problems I used to run into when developing in PHP.

Type safety seems like the way to go when developing modern-day applications, as I have created quite a few already and have never been forced to use any of them (non-generic collections).

Or maybe there are other reasons I’m not aware of that make these collections necessary? Obviously there included when trying to pass the certification exam for .NET for a reason. Just not sure why. Could someone please shed light on this subject?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:46:41+00:00Added an answer on May 21, 2026 at 2:46 am

    There are very few reasons to do this.

    About the only argument I see, on occasion, to use one of the non-generic collections is that there is a potential performance difference in Hashtable vs. Dictionary<object,object>. This is really due to a difference in implementation, which is described in detail on MSDN here.

    That being said, I’d still typically use Dictionary<T,U> – unless there was a very specific reason that Hashtable was providing some type of advantage, and this advantage could be proven via measurements on a real dataset. Overall, the performance is similar enough that I’ve rarely found issues in real world implementations. In most of my testing, Dictionary<T,U> outperforms Hashtable (which, I’m sure, was also Microsoft’s findings, hence they decided to change to a chaining based implementation), but there are some cases when Hashtable can be faster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Besides readability is there any significant benifit to using a CASE WHEN statement vs
Besides a drag-and-drop UI designer are there any other missing features when developing for
Besides the obvious (one is a type, the other a class)? What should be
Besides the obvious case of treating different exceptions differently, is there any benefit in
Besides the obvious fact that there's no sidebar in Windows 7, are there any
Maybe I'm just not seeing it, but is there any other way to access
Besides the obvious performance implications of doing so, what are good technical reasons not
Maybe this is a silly question but is there a difference,besides the obvious,between android:text=@string/....
Quick question here: is there any obvious benefit to use asynchronous communication with the
I really suck at Rails' finders besides the most obvious. I always resort to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.