예제 #1
0
 internal static IVectorCollection ForEach(IVectorCollection collection, VectorCollectionActionWithIndex action)
 {
     for (int i = 0; i < collection.Count; ++i)
     {
         action(i, collection[i]);
     }
     return(collection);
 }
예제 #2
0
 /// <summary>
 /// コレクションに action を適用する.
 /// </summary>
 /// <param name="action"><see cref="VectorCollectionActionWithIndex"/>で規定されるアクション</param>
 /// <returns>適用後の自身への参照</returns>
 public IVectorCollection ForEach(VectorCollectionActionWithIndex action)
 {
     return CollectionImpl.ForEach(this, action);
 }
예제 #3
0
 /// <summary>
 /// コレクションに action を適用する.
 /// </summary>
 /// <param name="action"><see cref="VectorCollectionActionWithIndex"/>で規定されるアクション</param>
 /// <returns>適用後の自身への参照</returns>
 public IVectorCollection ForEach(VectorCollectionActionWithIndex action)
 {
     return(CollectionImpl.ForEach(this, action));
 }