dictionary
-
What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();
-
What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();
-
What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();
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 -
What is the syntax to embed a dictionary within another dictionary? Dictionary dicText = new Dictionary();
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.