📜  动态检查 IList<T> C# 代码示例

📅  最后修改于: 2022-03-11 14:49:06.535000             🧑  作者: Mango

代码示例1
return ((IEnumerable)parentList).Cast()
    .Select(item => new SelectItem { Value = item, Text = item.ToString() })
    .OrderBy(selectItem => selectItem.Text)
    .ToList();