Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Clear()

virtual void System.Collections.Hashtable.Clear ( )
inlinevirtualinherited

Implements System.Collections.IDictionary.

Reimplemented in System.Collections.Hashtable.SyncHashtable.

Definition at line 681 of file Hashtable.cs.

682 {
683 if (_count != 0 || _occupancy != 0)
684 {
685 _isWriterInProgress = true;
686 for (int i = 0; i < _buckets.Length; i++)
687 {
688 _buckets[i].hash_coll = 0;
689 _buckets[i].key = null;
690 _buckets[i].val = null;
691 }
692 _count = 0;
693 _occupancy = 0;
695 _isWriterInProgress = false;
696 }
697 }
volatile bool _isWriterInProgress
Definition Hashtable.cs:407

References System.Collections.Hashtable._buckets, System.Collections.Hashtable._count, System.Collections.Hashtable._isWriterInProgress, System.Collections.Hashtable._occupancy, System.Collections.Hashtable.bucket.hash_coll, System.Collections.Hashtable.bucket.key, System.Collections.Hashtable.UpdateVersion(), and System.Collections.Hashtable.bucket.val.

Referenced by System.Xml.Schema.Preprocessor.BuildRefNamespaces(), System.Collections.DictionaryBase.Clear(), System.Collections.Specialized.HybridDictionary.Clear(), System.Collections.Specialized.OrderedDictionary.Clear(), System.Collections.Specialized.StringDictionary.Clear(), System.Collections.Hashtable.SyncHashtable.Clear(), System.Xml.Serialization.CodeIdentifiers.Clear(), System.Xml.Xsl.XsltArgumentList.Clear(), System.Xml.Schema.XmlSchemaValidator.ClearPSVI(), System.Xml.Serialization.XmlSchemas.Compile(), System.ComponentModel.Design.DesigntimeLicenseContextSerializer.Deserialize(), System.Xml.Schema.Preprocessor.Preprocess(), System.Net.HttpListener.RemoveAll(), System.Xml.Schema.XmlSchemaValidator.Reset(), System.Xml.Xsl.XsltOld.ActionFrame.ResetParams(), System.Xml.Schema.XmlSchemaValidator.ValidateElement(), System.Xml.Schema.DtdValidator.ValidateStartElement(), System.Xml.Schema.XdrValidator.ValidateStartElement(), and System.Xml.Schema.XsdValidator.ValidateStartElement().