Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. dictionary

dictionary

Scheduled Pinned Locked Moved Web Development
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    honeyman_can
    wrote on last edited by
    #1

    What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();

    G L E 3 Replies Last reply
    0
    • H honeyman_can

      What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      What programming language? Do you want to make a dictionary of dictionaries, or do you want to put a dictionary inside an item in another dictionary?

      --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • H honeyman_can

        What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();

        L Offline
        L Offline
        Landarzar
        wrote on last edited by
        #3

        In C#: If you want to create some sub dirs: string basedir = "C:\\MyDir\\"; string[] newsubdirs = new string[] { sub1, sub2, mynewsub }; System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo(basedir); for(int i = 0; i < newsubdirs.Length;i++) { dirInfo.CreateSubdirectory(".\\" + newsubdirs[i]); } -- modified at 12:55 Thursday 27th July, 2006

        1 Reply Last reply
        0
        • H honeyman_can

          What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();

          E Offline
          E Offline
          eggsovereasy
          wrote on last edited by
          #4

          Dictionary <string, Dictionary<string, string>> myDictionary = new Dictionary<string, Dictionary<string, string>>(); Obviously you can replace the strings with what datatypes you like. You could also set a Dictionary as a Key, but that gets confusing.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups