Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

asp.net
asp
dictionary

What is the ASP Dictionary object?

Behzad Ahmad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The ASP Dictionary object stores information as key-value pairs. The keys identify the objects in the dictionary. The dictionary object is similar to arrays, but comes with more functionality.

Methods

  • Items: This returns all the items which are present in the dictionary object.

  • Add: This adds any new key-value pair to the dictionary object.

  • Keys: This returns all the keys which are present in the dictionary object.

  • Exists: This returns true if a specified key exists in the dictionary object. Otherwise, it returns false.

  • Remove: This removes the specified key-value pair from the dictionary object.

  • RemoveAll: This removes all key-value mappings from the dictionary object.

Properties

  • Key: This updates an existing key-value pair with a new value in the dictionary object.

  • Item: This sets the value of an item in a dictionary object.

  • Count: This returns the total number of key-value mappings in a dictionary object.

  • CompareMode: This returns the comparison mode for comparing keys in the dictionary object.

RELATED TAGS

asp.net
asp
dictionary

CONTRIBUTOR

Behzad Ahmad
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring