c# - How to I add an item to a Dictionary<string, Dictionary<string, object>>? -


I want my layout manager class users to write it:

  Layout Manager Layout Manager = New Layout Manager (); Layout Manager AddMainContentView ("Customer", "Introduction", View New {title = "Customer ID", Content = "This is Customer Identity."}});  

But how do I fill out this dictionary in a dictionary in AddMainContentView () below?

  Public category LayoutManager {Private dictionary & lt; String, dictionary & lt; String, Object & gt; & Gt; _mainContentViews = New Dictionary & lt; String, dictionary & lt; String, Object & gt; & Gt; (); Public dictionary & lt; String, dictionary & lt; String, Object & gt; & Gt; MainContentViews {Get {return _mainContentViews; } Set {_mainContentViews = value; }} Public Zero AddMainContentView (String Modules, String View, Object View) {//_mainContentViews.Add(moduleKey, New Dictionary & lt; String, Object & gt; (ViewKey, see)); //_mainContentViews.Add(moduleKey, seeKey, see); _mainContentViews.Add (for modules, ???); Public Zero AddMainContentView (String Modules, String View, etc.) Object view) {Dictionary & lt; String, Object & gt; View = null; If the (main content wiz. Triage value (modules, out vidydict)) {viewDict = new dictionary & lt; String, Object & gt; (); MainContentViews.Add (modular, viewfinder); } If (viewfinder.content) (viewer) {viewfinder [view] = view; } Else {viewDict.Add (see, see); }}  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -