コード例 #1
0
 /// <summary>Gets the enumerator for the queue.</summary>
 /// <returns>An enumerator for the queue.</returns>
 public virtual IEnumerator GetEnumerator()
 {
     return(_heap.GetEnumerator());
 }
コード例 #2
0
 /// <summary>Gets an enumerator for the heap.</summary>
 /// <returns>An enumerator for all elements of the heap.</returns>
 public override IEnumerator GetEnumerator()
 {
     lock (_heap.SyncRoot) return(_heap.GetEnumerator());
 }