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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:04:50+00:00 2026-06-11T10:04:50+00:00

This is how my array should look: key : value name : victor age

  • 0

This is how my array should look:

key : value

name : victor
age : 16
country : romania
city : bucharest
language : romania

How can I pass trough all it’s elements to obtain something like:

Console.WriteLine("{0} = {1}", /*keyName*/, /*keyValue*/);
  • 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-11T10:04:51+00:00Added an answer on June 11, 2026 at 10:04 am

    That is not an array. That is dictionary.

    To iterate over it, use either for loop or foreach loop.

    example:

            var dictValues = new Dictionary<string, string>();
            // fill dictValues
            foreach(var items in dictValues)
                Console.WriteLine("{0} = {1}", items.Key, items.Value);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with two-dimensional array-values that should be inserted into a ArrayList. But this
I have a pointer to integer array of 10. What should dereferencing this pointer
arr=Array.new(3) arr[0]=5 arr[1]=3 arr[2]=2 These lines should call this function, https://github.com/ruby/ruby/blob/trunk/array.c#L568 according to this,
Here is an example bit from the xml file: <array> <dict> <key>Name</key> <string>Joe Smith</string>
Here is example how my array should look like: $library = array( 'book' =>
I have 2 arrays in PHP that look something like this: $rows = array(11,12,14,14,11,13,12,11);
I have the following array of keys and values. How can i recreate this
How can I produce a unique value key to be paired with my _rec_key_
I have this array, which is already sorted by 'name' ASC. array 0 =>
My array looks like this: array( 0 => 'val', 2 => 'val', 3 =>

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.