/// <summary> /// Adds a <see cref="UniqueIdCollection"/> items. /// </summary> /// <param name="collection"></param> public void AddCollection(UniqueIdCollection collection) { if (collection == null || collection.Count == 0) { return; } collection.ForEach(u => this.Add(u, null)); }
/// <summary> /// Initializes a new instance of the UniqueIdMap class. /// </summary> /// <param name="collection"></param> public UniqueIdMap(UniqueIdCollection collection) : base() { AddCollection(collection); }
/// <summary> /// Ctor. /// </summary> public DefaultKeyGenerator() { TempIds = new UniqueIdCollection(); }