/// <summary>
        /// Globals the add item.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <param name="item">The item.</param>
        /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
        internal bool Global_AddItem(string id, TreeItem <T> item)
        {
            if (_globalCollection.ContainsKey(id))
            {
                return(false);
            }

            _globalCollection.Add(id, item);
            _globalValues.Add(id, default(T));
            return(true);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Determines whether the specified key contains key.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <returns><c>true</c> if the specified key contains key; otherwise, <c>false</c>.</returns>
 public virtual bool ContainsKey(string key)
 {
     return(_coll.ContainsKey(key));
 }