var for_cat_dict = new Dictionary<string, string>();
var category_Dict = new Dictionary<string,Dictionary<string,string>>();
for_cat_dict.Add(bean.getId(), bean.getId());
Now I want to add elements to the category_dict. So I tried..
category_Dict.Add(bean.getId(),[for_cat_dict]);
But it doesnt work… any solutions??
It’s not really clear what you’re trying to do, but
should at least compile. Whether it’ll do what you want is another matter – it’s not clear whether these are local variables, fields etc. (It also looks like you’re not following .NET naming conventions in various ways…)