Click or drag to resize
STKey, Value Methods

The STKey, Value generic type exposes the following members.

Methods
  NameDescription
Public methodCeiling
Returns the smallest key in this symbol table greater than or equal to key.
Public methodContains
Returns true if this symbol table contain the given key.
Public methodDelete
Removes the specified key and its associated value from this symbol table (if the key is in this symbol table).
Public methodFloor
Returns the largest key in this symbol table less than or equal to key.
Public methodGet
Returns the value associated with the given key in this symbol table.
Public methodKeys
Returns all keys in this symbol table. To iterate over all of the keys in the symbol table named st, use the foreach notation: foreach (Key key n st.Keys()).
Public methodStatic memberMainTest
Demo test the ST data type.
Public methodPut
Inserts the specified key-value pair into the symbol table, overwriting the old value with the new value if the symbol table already contains the specified key. Deletes the specified key (and its associated value) from this symbol table if the specified value is null.
Top
See Also