コード例 #1
0
ファイル: SelectedIndices.cs プロジェクト: windygu/Cube.Forms
 /* ----------------------------------------------------------------- */
 ///
 /// Descend
 ///
 /// <summary>
 /// 降順にソートします。
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 public static IEnumerable <int> Descend(
     this System.Windows.Forms.ListView.SelectedIndexCollection indices)
 => indices.Cast <int>().OrderByDescending(x => x);
コード例 #2
0
 public static IEnumerable <int> AsEnumerable(this System.Windows.Forms.ListView.SelectedIndexCollection source)
 {
     TypeCheckEnumerable(source, (s) => s.AsEnumerable(), (s) => s[0]);
     return(source.Cast <int>());
 }