/* ----------------------------------------------------------------- */ /// /// Descend /// /// <summary> /// 降順にソートします。 /// </summary> /// /* ----------------------------------------------------------------- */ public static IEnumerable <int> Descend( this System.Windows.Forms.ListView.SelectedIndexCollection indices) => indices.Cast <int>().OrderByDescending(x => x);
public static IEnumerable <int> AsEnumerable(this System.Windows.Forms.ListView.SelectedIndexCollection source) { TypeCheckEnumerable(source, (s) => s.AsEnumerable(), (s) => s[0]); return(source.Cast <int>()); }