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

◆ GetEnumerator() [1/2]

IEnumerator< KeyValuePair< TKey, TValue > > IEnumerable< KeyValuePair< TKey, TValue > >. System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.GetEnumerator ( )
inlineprivate

Implements System.Collections.Generic.IEnumerable< out T >.

Definition at line 488 of file ConditionalWeakTable.cs.

489 {
490 lock (_lock)
491 {
492 Container container = _container;
494 if (container != null && container.FirstFreeEntry != 0)
495 {
497 result = enumerator;
498 }
499 else
500 {
502 }
503 return result;
504 }
505 }
IEnumerator< KeyValuePair< TKey, TValue > > IEnumerable< KeyValuePair< TKey, TValue > >. GetEnumerator()

References System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >._container, System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >._lock, System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.Container.FirstFreeEntry, and System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.GetEnumerator().

Referenced by System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.GetEnumerator().