Click or drag to resize

StringMap Class

A basic, type-safe string-to-string mapping collection.
Inheritance Hierarchy

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class StringMap : Hashtable

The StringMap type exposes the following members.

Constructors
  NameDescription
Public methodStringMap
Default constructor.
Public methodStringMap(Hashtable)
Populate the collection from the specified hash table. This can be used to construct the collection using OpenHashtable(String)
Top
Properties
  NameDescription
Protected propertycomparer Obsolete.
Gets or sets the IComparer to use for the Hashtable.
(Inherited from Hashtable.)
Public propertyCount
Gets the number of key/value pairs contained in the Hashtable.
(Inherited from Hashtable.)
Public propertyCriteria
Criteria for the current values in the collection. Use of this property is left to the caller who may use this for any purpose such as to determine whether or not the collection needs to be refreshed.
Protected propertyEqualityComparer
Gets the IEqualityComparer to use for the Hashtable.
(Inherited from Hashtable.)
Protected propertyhcp Obsolete.
Gets or sets the object that can dispense hash codes.
(Inherited from Hashtable.)
Public propertyIsFixedSize
Gets a value indicating whether the Hashtable has a fixed size.
(Inherited from Hashtable.)
Public propertyIsReadOnly
Gets a value indicating whether the Hashtable is read-only.
(Inherited from Hashtable.)
Public propertyIsSynchronized
Gets a value indicating whether access to the Hashtable is synchronized (thread safe).
(Inherited from Hashtable.)
Public propertyItemObject
Gets or sets the value associated with the specified key.
(Inherited from Hashtable.)
Public propertyItemString
StringMap indexer.
Public propertyKeys
Gets an ICollection containing the keys in the Hashtable.
(Inherited from Hashtable.)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the Hashtable.
(Inherited from Hashtable.)
Public propertyValues
Gets an ICollection containing the values in the Hashtable.
(Inherited from Hashtable.)
Top
Methods
  NameDescription
Public methodAdd(Object, Object)
Add a new string to the map or replace existing with same key.
Public methodAdd(String, String)
Add a new string to the map or replace existing with same key.
Public methodClear
Removes all elements from the Hashtable.
(Inherited from Hashtable.)
Public methodClone
Creates a shallow copy of the Hashtable.
(Inherited from Hashtable.)
Public methodContains
Determines if the collection contains the specified key.
(Overrides HashtableContains(Object).)
Public methodContainsKey
Determines if the collection contains the specified key.
(Overrides HashtableContainsKey(Object).)
Public methodContainsValue
Determines whether the Hashtable contains a specific value.
(Inherited from Hashtable.)
Public methodCopyTo
Copies the Hashtable elements to a one-dimensional Array instance at the specified index.
(Inherited from Hashtable.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an IDictionaryEnumerator that iterates through the Hashtable.
(Inherited from Hashtable.)
Protected methodGetHash
Returns the hash code for the specified key.
(Inherited from Hashtable.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetObjectData
Implements the ISerializable interface and returns the data needed to serialize the Hashtable.
(Inherited from Hashtable.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodKeyEquals
Compares a specific Object with a specific key in the Hashtable.
(Inherited from Hashtable.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnDeserialization
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from Hashtable.)
Public methodRemove
Remove an existing string from the map with no effect if not present.
(Overrides HashtableRemove(Object).)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
Remarks
The key is always forced to lower case.
See Also