Caution
Do not store elements in a FastLookupCollectionT that may change their hash code while they are added to the collection.
Finding such elements may fail even if CheckConsistency is .
public bool CheckConsistency { get; set; }
Public Property CheckConsistency As Boolean
Get
Set
public:
property bool CheckConsistency {
bool get ();
void set (bool value);
}
member CheckConsistency : bool with get, set
If CheckConsistency is , then the FastLookupCollectionT class is tolerant with direct modifications of the underlying collection but when inconsistency is detected, the cost of IndexOf and Contains methods can fall back to O(n) where n is the count of the elements in the collection.