/// <summary> /// Clones this instance. /// </summary> /// <returns>The created clone.</returns> public DataTypeBaseDictionary Clone() { DataTypeBaseDictionary clone = new DataTypeBaseDictionary(); clone.InnerHash = (Hashtable)_innerHash.Clone(); return(clone); }
/// <summary> /// Returns a synchronized (thread-safe) wrapper for the hash table. /// </summary> /// <param name="nonSync">The Hash table to synchronize.</param> /// <returns>A synchronized (thread-safe) wrapper for the hash table.</returns> public static DataTypeBaseDictionary Synchronized(DataTypeBaseDictionary nonSync) { DataTypeBaseDictionary sync = new DataTypeBaseDictionary(); sync.InnerHash = Hashtable.Synchronized(nonSync.InnerHash); return(sync); }
/// <summary> /// Inherits Properties from an existing property /// dictionary Instance /// </summary> /// <param name="source">DataType list to inherit</param> public virtual void Inherit(DataTypeBaseDictionary source) { foreach (string key in source.Keys) { Add(key, source[key]); //this[key] = entry.Value; } }
/// <summary> /// Initializes a new instance of the <see cref="DataTypeBaseDictionary"/> class. /// </summary> /// <param name="original">The original dictionary which well be copied.</param> public DataTypeBaseDictionary(DataTypeBaseDictionary original) { _innerHash = new Hashtable(original.InnerHash); }
internal DataTypeBaseDictionaryEnumerator(DataTypeBaseDictionary enumerable) { _innerEnumerator = enumerable.InnerHash.GetEnumerator(); }
/// <summary> /// Inherits Properties from an existing property /// dictionary Instance /// </summary> /// <param name="source">DataType list to inherit</param> public virtual void Inherit(DataTypeBaseDictionary source) { foreach ( string key in source.Keys ){ Add( key, source[key] ); //this[key] = entry.Value; } }
/// <summary> /// Clones this instance. /// </summary> /// <returns>The created clone.</returns> public DataTypeBaseDictionary Clone() { DataTypeBaseDictionary clone = new DataTypeBaseDictionary(); clone.InnerHash = (Hashtable) _innerHash.Clone(); return clone; }
/// <summary> /// Returns a synchronized (thread-safe) wrapper for the Hashtable. /// </summary> /// <param name="nonSync">The Hashtable to synchronize.</param> /// <returns>A synchronized (thread-safe) wrapper for the Hashtable.</returns> public static DataTypeBaseDictionary Synchronized(DataTypeBaseDictionary nonSync) { DataTypeBaseDictionary sync = new DataTypeBaseDictionary(); sync.InnerHash = Hashtable.Synchronized(nonSync.InnerHash); return sync; }