Advanced Hashtable is a component that wraps the .NET Dictionary<string, object> class. It enables flexible key-value storage with support for multiple data types and nested hashtables, making it useful in dynamic and complex logic scenarios in which performance is critical.
Features
Initialization
Setting Values
Getting Values
These actions retrieve a value by key. If the key is not found in the collection, a default value (i.e. 0 for integers, "" for strings, etc) is returned instead.
Getting Values (safe try pattern)
These actions try to retrieve a value by key and return an output flag (KeyExists) to indicate that the value was successfully found and returned. This is more performant than using a combination of HT_Exists followed by HT_Get*.
Array Support
These actions allow interaction with hashtables as if they were arrays. Requires Array_Init to be called first.
Entry Inspection
Maintenance
Remarks
These actions allow interaction with hashtables as if they were arrays. Requires HT_ArrayCreate to be called first.