ACR_ServerMisc.ACR_ServerMisc.DictionaryGetString C# (CSharp) Method

DictionaryGetString() private method

Get Value corresponding to Dictionary DictID's Key. On error return null string.
private DictionaryGetString ( string DictID, string Key, string &Value ) : bool
DictID string Supplies the id of the Dictionary to access. ///
Key string Supplies the Key for lookup of the target dictionary. ///
Value string Output is the Value corresponding to Key. ///
return bool
        private bool DictionaryGetString(string DictID, string Key, out string Value)
        {
            SortedDictionary<string, string> Dict;

	         Value = "";

            if (StorageList.TryGetValue(DictID, out Dict) == false)
                return false;

            if (Dict.TryGetValue(Key, out Value) == false)
                return false;

            return true;
        }