hi how could I make array like this in c#??: settings width and height is loaded from file
properties["settings"]["width"] = "bbb"; properties["settings"]["height"] = "cccc"; and dynamic_string_key is keys loaded from file and I dont know how many or what key name and values will be :)
properties["sets_of_data"][dynamic_string_key]= "lalala"; properties["sets_of_data"][dynamic_string_key]= "lalala"; properties["sets_of_data"][dynamic_string_key]= "lalala"; properties["sets_of_data"][dynamic_string_key]= "lalala";
Dictionary<string_FirstOuterKey, Dictionary<string_SecondInnerKey, string>>; but in my opinion it would be better to have some configuration/settings class/object that has twoDictionary<string, string>, one for each the "settings" block and one for the "sets_of_data" block. Otherwise, your code might quickly become a mess with all those keys over two levels...Dictionary<string, Dictionary<string, string>>properties["a"] = new Dictionary<string, string>(); properties["a"][dynamic_string_key] = "lalala";note: only initialized it once, or you will lose data.