{"id":1081,"date":"2019-09-26T12:19:45","date_gmt":"2019-09-26T12:19:45","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=1081"},"modified":"2021-03-24T17:44:05","modified_gmt":"2021-03-24T17:44:05","slug":"dictionary-drawer","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/dictionary-drawer\/","title":{"rendered":"Dictionary Drawer"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1082\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/09\/Dictionary-Drawer.png\" alt=\"\" width=\"360\" height=\"119\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/09\/Dictionary-Drawer.png 360w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/09\/Dictionary-Drawer-300x99.png 300w\" sizes=\"(max-width: 360px) 100vw, 360px\" \/><\/p>\n<p>A <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/drawer\/\">drawer<\/a><\/strong> that can handle displaying <strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/api\/system.collections.generic.dictionary-2?view=netframework-4.8\">dictionaries<\/a><\/strong> in the inspector is included in Power Inspector.<\/p>\n<p>To learn how to expose a dictionary in the inspector refer to the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/getting-started\/class-member-visibility\/\">class member visibility<\/a><\/strong>\u00a0section of the documentation.<\/p>\n<p>You can also examine any non-exposed dictionaries easily by <a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/debug-mode\/\"><strong>enabling Debug Mode+<\/strong><\/a> for the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/target-object\/\">target<\/a><\/strong> that holds the dictionary.<\/p>\n<h1>Adding New Elements<\/h1>\n<p>You can add new elements to the dictionary using the Add control. Specify the key that should be used for the new entry and press the button with the plus sign.<\/p>\n<p>The key given must be unique according to the dictionary&#8217;s equality comparer. If it is not unique, the field will be tinted red and won&#8217;t be accepted.<\/p>\n<h1>Removing Existing Elements<\/h1>\n<p>You can remove elements from a dictionary by selecting one or more of them and then pressing the <strong>delete<\/strong> <strong>key<\/strong> on your keyboard. All of the selected elements will be removed from the dictionary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A drawer that can handle displaying dictionaries in the inspector is included in Power Inspector. To learn how to expose a dictionary in the inspector refer to the class member visibility\u00a0section of the documentation. You can also examine any non-exposed dictionaries easily by enabling Debug Mode+ for the target that holds the dictionary. Adding New ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/dictionary-drawer\/\" title=\"read more\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[25,24],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/1081"}],"collection":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/comments?post=1081"}],"version-history":[{"count":6,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/1081\/revisions"}],"predecessor-version":[{"id":1819,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/1081\/revisions\/1819"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=1081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=1081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=1081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}