Exemple #1
0
 /// <summary>
 /// Releases an ID and removes its object from the Database.
 /// </summary>
 /// <param name="id">The ID to release.</param>
 /// <returns><code>True</code> if the ID was released successfully,
 /// <code>False</code> otherwise.
 /// </returns>
 /// <exception cref="UnregisteredPackageException">If the package specified
 /// by the ID is not registered.
 /// </exception>
 public static bool Release(IdentityNumber id)
 {
     WriteLine("release id " + id.ToString());
     if (!_registered[id.Package])
     {
         throw new UnregisteredPackageException(id.Package);
     }
     return(map.Release(id));
 }