public T Get <T>(string section, string key)
    {
        // TODO 2: Almacenamos una Key en el diccionario m_serialized
        Debug.Assert(m_serialized.ContainsKey(section), "La sección " + section + " no existe");
        StorageKey storageKey = m_serialized[section];

        Debug.Assert(storageKey.ContainsKey(key));
        return(storageKey.Get <T>(key));
    }
Exemple #2
0
    public T Get <T>(string section, string key)
    {
        // TODO 2: Almacenamos una Key en el diccionario m_serialized
        Debug.Assert(m_serialized.ContainsKey(section), "Section " + section + "not exist");

        StorageKey sk = m_serialized[section];

        Debug.Assert(sk.ContainsKey(key), "The Key " + key + " in section " + section + " not exist");
        return(sk.Get <T>(key));
    }
Exemple #3
0
    public bool Contains(string section, string key)
    {
        bool result = m_serialized.ContainsKey(section);

        if (result)
        {
            StorageKey sk = m_serialized[section];
            result = sk.ContainsKey(key);
        }
        return(result);
    }