You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Reactive Hash Table, used to store and observe values in a hash table reflecting the structure of an object.
Usage
// Replace YOUR_OBJECT with the object you want to store in the hash tablevarobj=newYOUR_OBJECT();// Create a new Hash Table - the bool is used to determine if the hash table should use Upper Case or Case Sensitive keysvarhashTable=newHashTableRx(false);// Set / update the structure of the Hash TablehashTable.SetStructure(obj);hashTable.Observe<bool>("YourProperty").Subscribe(value =>{// Do something with the value});// Set the value in the hash tablehashTable.Value<float>("YourProperty",10.5f);// Get the value from the hash tablevarvalue=hashTable.Value<float>("YourProperty");// Get the current structure of the hash tablevarupdatedObj=hashTable.GetStructure();
About
The HashTableRx can be used to store and observe values in a hash table reflecting the structure of an object. The HashTableRx is a reactive hash table, which means that you can observe the values in the hash table and react to changes in the values. The HashTableRx is a generic class, which means that you can store any type of object in the hash table. The HashTableRx is a lightweight and easy-to-use library that can be used in any C# project.
Variables in the HashTableRx are seperated by a dot, for example: "YourProperty.SubProperty".
This is used to reflect the layers of a structured object in the hash table.
Currently, the HashTableRx supports the following types:
Structures made of Public Fields both Primative and further layers of classes, itteration will be done to find the Primative values in a Structure.