Dictionary Drawer

  05. Enhanced Drawers No Comments

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 section 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 Elements

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.

The key given must be unique according to the dictionary’s equality comparer. If it is not unique, the field will be tinted red and won’t be accepted.

Removing Existing Elements

You can remove elements from a dictionary by selecting one or more of them and then pressing the delete key on your keyboard. All of the selected elements will be removed from the dictionary.