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

  • Home
  • SEARCH
  • 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 3632078
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:28:47+00:00 2026-05-19T00:28:47+00:00

Can anyone please tell me the difference between DictionaryBase and generic Dictionary<TKey, TValue> ,

  • 0

Can anyone please tell me the difference between DictionaryBase and generic Dictionary<TKey, TValue>, except that DictionaryBase is an abstract class! Both of them are strongly typed and I read somewhere that generic classes are better than non-generic ones in performance and should be preferred, so what is the exact use of DictionaryBase then?
Both the classes are almost same!

Any kind of help would be appreciated

Thanks

  • 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-19T00:28:47+00:00Added an answer on May 19, 2026 at 12:28 am

    Dictionarybase is base class implementing the non generic IDictionary interface while Dictionary is the generic version of a dictionary implementing the generic IDictionary interface. Use of generics is preferred over non generics.

    I think this would be more helpful When to use generics?

    Using generic collections is generally recommended, because you gain
    the immediate benefit of type safety without having to derive from a
    base collection type and implement type-specific members. Generic
    collection types also generally perform better than the corresponding
    nongeneric collection types (and better than types that are derived
    from nongeneric base collection types) when the collection elements
    are value types, because with generics there is no need to box the
    elements.

    Also go through, Introduction to Generics

    Generic classes and methods combine reusability, type safety and
    efficiency in a way that their non-generic counterparts cannot.
    Generics are most frequently used with collections and the methods
    that operate on them. Version 2.0 of the .NET Framework class library
    provides a new namespace, System.Collections.Generic, which contains
    several new generic-based collection classes. It is recommended that
    all applications that target the .NET Framework 2.0 and later use the
    new generic collection classes instead of the older non-generic
    counterparts

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

Sidebar

Related Questions

No related questions found

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.