Question:Which of the following are required to be true by objects which are going to be used as keys in a System.Collections.HashTable? 

A They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods. 

B Key objects must be immutable for the duration they are used within a HashTable. 

C Get HashCode() must be overridden to provide the same result, given the same parameters, regardless of reference equalityl unless the HashTable constructor is provided with an IEqualityComparer parameter. 

D Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement 

E All of these 

+ Answer
+ Report
Total Preview: 526

Copyright © 2024. Powered by Intellect Software Ltd