Cpying Dictionary to Array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?THVpZ2k=?=

    #1

    Cpying Dictionary to Array

    Hi all,
    having a Dictionary like this:

    Dictionary<stri ng, string[]>

    how can a get an array passing the string key to this dictionary?
    I'm using C# 2.0.

    Thanks in advance.
    --
    Luigi

  • Alberto Poblacion

    #2
    Re: Cpying Dictionary to Array

    "Luigi" <ciupazNoSpamGr azie@inwind.itw rote in message
    news:50AE6FC4-CECB-4F79-ACFD-3464D6F3AB8D@mi crosoft.com...
    having a Dictionary like this:
    >
    Dictionary<stri ng, string[]>
    >
    how can a get an array passing the string key to this dictionary?
    I'm using C# 2.0.
    Like this:

    string[] result = myDictionary[key];


    Comment

    • =?Utf-8?B?THVpZ2k=?=

      #3
      Re: Cpying Dictionary to Array

      "Alberto Poblacion" wrote:
      >
      Like this:
      >
      string[] result = myDictionary[key];
      >
      Yes, thank you Alberto.

      Luigi

      Comment

      Working...