Ejemplo n.º 1
0
        /// <summary>
        /// Removes the value with the specified key from the <see cref="XmlDictionary{TKey, TValue}"/>
        /// </summary>
        /// <param name="key"></param>
        public void Remove(TKey key)
        {
            DataItem <TKey, TValue> item = Items.Find(x => (x.Key.Equals(key)));

            Items.Remove(item);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds the specified key and value to the dictionary.
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        public void Add(TKey key, TValue value)
        {
            DataItem <TKey, TValue> item = new DataItem <TKey, TValue>(key, value);

            Items.Add(item);
        }