ACR_ServerMisc.ACR_ServerMisc.DictionarySetString C# (CSharp) Method

DictionarySetString() private method

Set Dictionary DictID's Key to a String Value.
private DictionarySetString ( string DictID, string Key, string Value ) : void
DictID string Supplies the id of the Dictionary to access. /// If this Dictionary does not exist, create it.
Key string Supplies the Key for lookup of the target dictionary. /// If no such Key exists, create a new Key/Value pair.
Value string Supplies the Value to associate to the Key in the /// target dictionary.
return void
        private void DictionarySetString(string DictID, string Key, string Value)
        {
            SortedDictionary<string, string> Dict;

            // Create if does not exist
            if (StorageList.TryGetValue(DictID, out Dict) == false)
            {
                Dict = new SortedDictionary<string, string>();
                StorageList[DictID] = Dict;
            }

            Dict[Key] = Value;
            StorageIteratorList.Remove(DictID);
        }