예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the UniqueIdMap class.
 /// </summary>
 /// <param name="collection"></param>
 public UniqueIdMap(UniqueIdCollection collection)
     : base()
 {
     AddCollection(collection);
 }
예제 #3
0
 public DefaultKeyGenerator()
 {
     TempIds = new UniqueIdCollection();
 }