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 8133363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:34:50+00:00 2026-06-06T09:34:50+00:00

There are several places on the internet that talk about having multy key dictionary

  • 0

There are several places on the internet that talk about having multy key dictionary such as in:

Multi-key dictionary in c#?

Or

Multi-key dictionaries (of another kind) in C#?

I am looking for a multi key dictionary that will enable me to retrieve the object that I am looking for as long as I provide just one key. In other words If I where to have:

 // multyKeyDictionary = instance of a multikeydictionary 
 multyKeyDictionary.add(key1, key2, someObject);

then I will like to be able to retrive someObject as:

multyKeyDictionary[key1]; or multyKeyDictionary[key2];

  • 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-06-06T09:34:52+00:00Added an answer on June 6, 2026 at 9:34 am

    Well, I don’t understand why don’t you just use regular dictionary and add object twice with different keys.

    Dictionary<string, object> dict = new Dictionary<string, object>();
    dict.Add("key1", obj);
    dict.Add("key2", obj);
    
    // dict["key1"] == dict["key2"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the internet there are several places that show you how to get an
There are several other questions about this topic that I have gone through, but
There are several places that you can enter this character by typing ctrl-backspace, including
There are several places, where one has to convert one data object into another.
There are several resources out there that explain how the sandbox in Chrome works
In our project there are several places where we could've gotten away with hashing.
I've created a webapp using CodeIgniter. There are several places where I use ajax
OK, I am building an application that will be using ASIHttpRequest in several places
I'm having the same issue as described in several places, including in Stack Overflow
There are several places in BCL where one can make use of IEqualityComparer .

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.