Ejemplo n.º 1
0
        /// <summary>
        /// Create a new instance of the IdentityMap that has no
        /// iteration order.
        /// </summary>
        /// <returns>A new IdentityMap based on a Hashtable.</returns>
        public static IDictionary Instantiate(int size)
        {
            IHashCodeProvider ihcp = new NHibernate.IdentityHashCodeProvider();
            IComparer         comp = new IdentityComparer();

            return(new IdentityMap(new Hashtable(size, ihcp, comp)));
        }
		/// <summary>
		/// Create a new instance of the IdentityMap that has no 
		/// iteration order.
		/// </summary>
		/// <returns>A new IdentityMap based on a Hashtable.</returns>
		public static IDictionary Instantiate( int size )
		{
			IHashCodeProvider ihcp = new NHibernate.IdentityHashCodeProvider();
			IComparer comp = new IdentityComparer();
			return new IdentityMap( new Hashtable( size, ihcp, comp ) );
		}