- 698 名前:610 (ワッチョイ 6b90-XdR7) mailto:sage [2017/02/20(月) 03:25:39.28 ID:Vf7595PK0.net]
- public static IEnumerable<int> IndexCollection(IEnumerable<Type> source, Func<Type, bool> predicate)
{ return source.Where(_ => predicate(_)).Select((value, index) => index); } こういうことですか?でもなぜかこう書くと評価されなくて返り値がnullのままになります var list = num.Where(_ => _ > 12).Select((value, index) => index); こう書くときちんと評価されるのですが・・・さっぱりわかりません
|

|