Restituisce un enumeratore che consente di eseguire l'iterazione di una raccolta. Implementa l'interfaccia ISerializable e genera l'evento di deserializzazione quando la deserializzazione è completa.Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. Solo .NET Framework: Per gli oggetti di grandi dimensioni Hashtable , è possibile aumentare la capacità massima di 2 miliardi elementi in un sistema a 64 bit impostando l' enabled attributo dell' elemento di configurazione su true nell'ambiente di Runtime..NET Framework only: For very large Hashtable objects, you can increase the maximum capacity to 2 billion elements on a 64-bit system by setting the enabled attribute of the configuration element to true in the run-time environment. In informatica un' hash table, in italiano tabella hash, è una struttura dati usata per mettere in corrispondenza una data chiave con un dato valore. Gli oggetti chiave non devono essere modificabili a condizione che vengano usati come chiavi nell'oggetto Hashtable .Key objects must be immutable as long as they are used as keys in the Hashtable. Inizializza una nuova istanza della classe Hashtable copiando gli elementi dal dizionario specificato nel nuovo oggetto Hashtable.Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to the new Hashtable object. I fattori di carico più piccoli provocano tempi di ricerca medi più rapidi al costo di un maggiore consumo di memoria.Smaller load factors cause faster average lookup times at the cost of increased memory consumption. Inizializza una nuova istanza della classe Hashtable copiando gli elementi dal dizionario specificato nel nuovo oggetto Hashtable.Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to the new Hashtable object. Inizializza una nuova istanza vuota della classe Hashtable usando la capacità iniziale e il fattore di carico predefiniti e il provider di codice hash e l'operatore di confronto specificati.Initializes a new, empty instance of the Hashtable class using the default initial capacity and load factor, and the specified hash code provider and comparer. Your type names are a mix of Pascal case and the C … Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance. Inizializza una nuova istanza della classe Hashtable copiando gli elementi dal dizionario specificato in un nuovo oggetto Hashtable.Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to a new Hashtable object. Restituisce il codice hash per la chiave specificata.Returns the hash code for the specified key. Se l'uguaglianza delle chiavi è semplicemente un riferimento all'uguaglianza, è sufficiente l'implementazione ereditata di Object.GetHashCode e Object.Equals .If key equality were simply reference equality, the inherited implementation of Object.GetHashCode and Object.Equals would suffice. Gli oggetti utilizzati come chiavi da un oggetto Hashtable sono necessari per eseguire l'override del Object.GetHashCode metodo o dell' IHashCodeProvider interfaccia e del Object.Equals metodo o dell' IComparer interfaccia.The objects used as keys by a Hashtable are required to override the Object.GetHashCode method (or the IHashCodeProvider interface) and the Object.Equals method (or the IComparer interface). A hash table then, is a data structure with keyed array items. Nell'esempio seguente viene illustrato come creare, inizializzare ed eseguire varie funzioni in un oggetto, The following example shows how to create, initialize and perform various functions to a, Ogni elemento è una coppia chiave/valore archiviata in un, Each element is a key/value pair stored in a, à invece consigliabile usare la classe generica, Instead, we recommend that you use the generic, Gli oggetti utilizzati come chiavi da un oggetto, L'implementazione di metodi e interfacce deve gestire la distinzione tra maiuscole e minuscole nello stesso modo; in caso contrario, il, The implementation of both methods and interfaces must handle case sensitivity the same way; otherwise, the, Inoltre, questi metodi devono produrre gli stessi risultati quando vengono chiamati con gli stessi parametri mentre la chiave esiste in, Furthermore, these methods must produce the same results when called with the same parameters while the key exists in the, Se l'uguaglianza delle chiavi è semplicemente un riferimento all'uguaglianza, è sufficiente l'implementazione ereditata di, If key equality were simply reference equality, the inherited implementation of, Gli oggetti chiave non devono essere modificabili a condizione che vengano usati come chiavi nell'oggetto, Key objects must be immutable as long as they are used as keys in the, Quando un elemento viene aggiunto all'oggetto. A hash table is just a linked list (I'll get to what a linked list is later on) with a hash function. Each "basket" is just another linked list or something else depending on how you implement it. Nell'esempio seguente viene illustrato come creare, inizializzare ed eseguire varie funzioni in un oggetto Hashtable e come stampare le chiavi e i valori.The following example shows how to create, initialize and perform various functions to a Hashtable and how to print out its keys and values. Stabilisce se Hashtable contiene un valore specifico.Determines whether the Hashtable contains a specific value. Rimuove l'elemento con la chiave specificata da Hashtable.Removes the element with the specified key from the Hashtable. Gets or sets the object that can dispense hash codes. Il nuovo oggetto Hashtable ha una capacità iniziale uguale al numero di elementi copiati e usa il fattore di carico predefinito e il provider di codice hash e l'operatore di confronto specificati.The new Hashtable object has an initial capacity equal to the number of elements copied, and uses the default load factor, and the specified hash code provider and comparer. Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object. This function decides where to put a given element into that table. Per supportare più writer, tutte le operazioni in Hashtable devono essere eseguite tramite il wrapper restituito dal Synchronized(Hashtable) metodo, a condizione che nessun thread legga l' Hashtable oggetto.To support multiple writers all operations on the Hashtable must be done through the wrapper returned by the Synchronized(Hashtable) method, provided that there are no threads reading the Hashtable object. Viene usata per l'implementazione di strutture dati astratte associative come Map o Set. Inizializza una nuova istanza vuota della classe Hashtable usando la capacità iniziale e il fattore di carico predefiniti e l'oggetto IEqualityComparer specificato.Initializes a new, empty instance of the Hashtable class using the default initial capacity and load factor, and the specified IEqualityComparer object. Quando viene creato, è inoltre possibile specificare un fattore di carico diverso Hashtable .A different load factor can also be specified when the Hashtable is created. Ottiene o imposta il valore associato alla chiave specificata. Enumerating through a collection is intrinsically not a thread safe procedure. Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object. Restituisce il codice hash per la chiave specificata. Based on the Hash Table index, we can store the value at the appropriate location. Dictionary data types. If two different keys get the same index, we need to use other data structures (buckets) to account for these collisions. Inizializza una nuova istanza vuota della classe Hashtable usando la capacità iniziale, il fattore di carico, il provider di codice hash e l'operatore di confronto specificati.Initializes a new, empty instance of the Hashtable class using the specified initial capacity, load factor, hash code provider, and comparer. Ottiene l'interfaccia IEqualityComparer da usare per la classe Hashtable.Gets the IEqualityComparer to use for the Hashtable. Ottiene un oggetto ICollection contenente le chiavi presenti nell'oggetto Hashtable.Gets an ICollection containing the keys in the Hashtable. Hash table A hash table is a data structure that is used to store keys/value pairs. Ottiene un valore che indica se Hashtable è di sola lettura.Gets a value indicating whether the Hashtable is read-only. Bzøy‚ù‚„–!—ñc½ÅDã×oø,œ3®¦x95¬>ö3cı©ğ`&nJÊÒ��ORæH�PË€ÀœPCcÂ(@ú3U´'™Aİğ}2{q>{ö�kóó…ó‹?вÍW77‹ZÌW‹�çof¯Î‹jÏBÇÃik�r “`7¬oȲ�šŠd?Ù¯N¶¢Ó£Ş€é¹¶-‡!r�
‚Ÿšqd. Ogni oggetto chiave in Hashtable deve fornire la propria funzione hash, a cui è possibile accedere chiamando GetHash .Each key object in the Hashtable must provide its own hash function, which can be accessed by calling GetHash.