コード例 #1
0
 protected virtual IEnumerator GetEnumerator()
 {
     return(SourceCollection.GetEnumerator());
 }
コード例 #2
0
 /// <summary>
 /// Returns an enumerator that iterates through the collection.
 /// </summary>
 /// <remarks>
 /// Subclass must implement this method.
 /// </remarks>
 /// <returns>
 /// A <see cref="IEnumerator{T}"/> that can be used to iterate
 /// through the collection.
 /// </returns>
 /// <filterpriority>1</filterpriority>
 public override IEnumerator <TTo> GetEnumerator()
 {
     return(new TransformingEnumerator <TFrom, TTo>(SourceCollection.GetEnumerator(), Transform));
 }