ふらっとC#,C♯,C#(初心者用) Part31 at TECH
[2ch|▼Menu]
395:390
08/10/03 21:33:47
>>394
> Action<T, int>使えよ
おや。そんなものが?
じゃ、こうかな。

public static class IListExtensions {
public static void EachWithIndex<T>(this IList<T> lst, Action<T, int> func){
int index = 0;
foreach (T obj in lst){
func(obj, index++);
}
}
}



次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5385日前に更新/215 KB
担当:undef